已关闭
[Bug]: 【测试类型:SQL功能】【测试版本:7.0.0-LTS】在分布式spq插件中使用bm25索引查询,不带limit过滤结果报错 #11
lvlintao666创建于  8月7日关闭于  22 天前
lvlintao666
lvlintao666成员
8月7日 创建

测试类型

SQL功能

测试版本

7.0.0LTS

问题描述

操作系统和硬件信息

2203 arm

测试环境

企业版主备

被测功能

预置条件

操作步骤

在一CN二DN分布式环境中,执行以下SQL语句

drop table if exists t_func_bm25_index0007;
create table t_func_bm25_index0007 (id bigserial primary key,val_text text);
select create_distributed_table('t_func_bm25_index0007','id',shard_count:=2);
create index on t_func_bm25_index0007 using bm25(val_text);
insert into t_func_bm25_index0007(val_text) values ('new world 这是一段英文文本');
insert into t_func_bm25_index0007(val_text) values ('hello world');
insert into t_func_bm25_index0007(val_text) values ('hello hello world 这是一段英文文本');
insert into t_func_bm25_index0007(val_text) values ('hello hello hello world');
insert into t_func_bm25_index0007(val_text) values ('');
insert into t_func_bm25_index0007(val_text) values ('hello world');
insert into t_func_bm25_index0007(val_text) values ('he ll o world');
insert into t_func_bm25_index0007(val_text) values (null);
insert into t_func_bm25_index0007(val_text) values (' ');
set enable_seqscan=off;
set enable_indexscan=on;
set enable_bm25_global_idf=on;

select *,val_text <&> 'hello' from t_func_bm25_index0007 order by val_text <&> 'hello' desc;

预期输出

查询成功

实际输出

image.png

日志信息

如上

提单组织

测试团队

测试代码

likedislike
lvlintao666lvlintao666成员
8月7日 添加了label:bug
lvlintao666lvlintao666成员
8月7日 关联了看板:openGauss 7.0.0-LTS
opengauss_botopengauss_bot成员
8月7日 添加了label:sig/Community
opengauss_bot
opengauss_bot成员
8月7日 评论:

Welcome To openGauss Community

Hey @u012280419 , 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.

Contact Guide

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

likedislike
lvlintao666lvlintao666成员
8月7日 issue优先级由 主要 改变为 次要
赵岑炯赵岑炯成员
8月14日 关联了pull request:修复bm25查询不带limit报找不到索引问题
赵岑炯赵岑炯成员
28 天前 issue状态由 待办的 改变为 待回归
赵岑炯
赵岑炯成员
28 天前 评论:

修复后sql执行成功 image.png

likedislike
赵岑炯
赵岑炯成员
27 天前 评论:

转测包:wget -c
'https://zcj11.oss-cn-shanghai.aliyuncs.com/openGauss-GV-CPU-master-20260819-complete.tar.gz'

解压:
tar -xzf openGauss-GV-CPU-master-20260819-complete.tar.gz

docker load -i
final/openGauss-Lite-7.0.0-RC3-openEuler22.03-aarch64-cpu-master-20260819-docker.tar

likedislike
lvlintao666
lvlintao666成员
22 天前 评论:

回归时间:2026.8.25
回归版本:7.0.0 B019
回归结论:通过
回归步骤:安装上述镜像包,加载spq插件,执行以上SQL
image.png

likedislike
lvlintao666lvlintao666成员
22 天前 issue状态由 待回归 改变为 已验收
lvlintao666lvlintao666成员
22 天前 关闭了 issue