已开启
[Bug]:bm25开启global IDF,INSERT … SELECT语句报错 #16
toy创建于  21 天前
toy
toy
21 天前 创建

测试类型

SQL功能

测试版本

7.0.0LTS

问题描述

bm25开启global IDF,INSERT … SELECT语句报错

操作系统和硬件信息

openEuler release 20.03 (LTS-SP4)

测试环境

企业版单机

被测功能

预置条件

操作步骤

-- 打挂 CN(SIGSEGV + bbox core)的最小复现
SET enable_seqscan = off;

CREATE TABLE core_t (id int, content text);
SELECT create_distributed_table('core_t', 'id', shard_count := 4);
INSERT INTO core_t VALUES
(1, 'heart peach'), (2, 'heart heart'), (3, 'heart heart heart'), (4, 'heart heart heart heart');
CREATE INDEX core_t_idx ON core_t USING bm25(content);

SET enable_bm25_global_idf = on; -- 必须打开 global IDF
CREATE TABLE core_tmp (id int, score float);
SELECT create_distributed_table('core_tmp', 'id', shard_count := 4);
INSERT INTO core_tmp (id, score) -- 必须是 INSERT ... SELECT(对分布式表)
SELECT id, content <&> 'heart' FROM core_t
ORDER BY content <&> 'heart' DESC; -- 这里 core

预期输出

实际输出

coredump

日志信息

coredump

提单组织

社区用户

测试代码

likedislike
opengauss_bot
opengauss_bot成员
21 天前 评论:

This issue requires an assignee. Since you haven't specified one, we've assigned TestManager as the default assignee for this issue.

likedislike
opengauss_botopengauss_bot成员
21 天前 将 TestManager 设为负责人
opengauss_botopengauss_bot成员
21 天前 添加了label:sig/Community
opengauss_bot
opengauss_bot成员
21 天前 评论:

Welcome To openGauss Community

Hey @ty21456211 , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.

Contact Guide

If you have any questions, please contact the SIG: Community ,
and any of the maintainers: @CarrotGo, @chendong76, @chenxiaobin19, @congzhou2603, @dodders, @hwworkholic, @jemappellehc, @libiao2024, @muyulinzhong, @quemingjian, @shenzheng4, @shirley_zhengx, @superlchf, @totaj, @wlff234, @wofanzheng, @ywzq1161327784 ,
and any of the committers: @libiao2024 .

likedislike
liuzhen001liuzhen001成员
1 天前 关联了看板:openGauss 8.0.0-RC1