已关闭
[Bug]: hashjoin开启后,门禁用例select结果错误 #347
hcs创建于  29 天前关闭于  18 天前
hcs
hcs成员
29 天前 创建

测试类型

SQL功能

测试版本

7.0.0LTS

问题描述

操作系统和硬件信息

任意

测试环境

oGRAC单节点

被测功能

预置条件

操作步骤

drop table if exists t_join_0035_01;
drop table if exists t_join_0035_02;
drop table if exists t_join_0035_03;
drop table if exists t_join_0035_04;
create table t_join_0035_01(w_zip text);
create table t_join_0035_02(w_name varchar(20),w_tax int,w_street_2 varchar(50));
create table t_join_0035_03(d_id int);
create table t_join_0035_04(w_id int,w_ytd numeric(6,2));
insert into t_join_0035_01 values('pandas');
insert into t_join_0035_01 values('pandas1');
insert into t_join_0035_01 values('pandas2');
insert into t_join_0035_02 values('七仔', 1, 'pandas');
insert into t_join_0035_02 values('萌兰', 2, 'pandas');
insert into t_join_0035_02 values('花花', 3, 'pandas3');
insert into t_join_0035_02 values('乐乐', 4, 'pandas1');
insert into t_join_0035_02 values('丫丫', 5, 'pandas2');
insert into t_join_0035_02 values('美香', 6, 'pandas4');
insert into t_join_0035_02 values('小奇迹', 7, 'pandas5');
insert into t_join_0035_04 values(102,40.0);
insert into t_join_0035_04 values(29,3.1);

alter system set enable_hash_join=false;
alter system flush sqlpool;

select
    *
from
    (
    select
        alias2.w_name alias6 ,
        alias2.w_tax alias7,
        mod(t_join_0035_04.w_id,
        t_join_0035_04.w_ytd + 10) alias8
    from
        t_join_0035_01 alias1
    full join t_join_0035_02 alias2 on
        alias1.w_zip = alias2.w_street_2,
        t_join_0035_04)alias9
full join t_join_0035_03 on
    alias9.alias7 != t_join_0035_03.d_id
where
    alias9.alias8 = 2
    or alias9.alias7 = 2
order by alias7, alias8, alias6;

alter system set enable_hash_join=true;
alter system flush sqlpool;

select
    *
from
    (
    select
        alias2.w_name alias6 ,
        alias2.w_tax alias7,
        mod(t_join_0035_04.w_id,
        t_join_0035_04.w_ytd + 10) alias8
    from
        t_join_0035_01 alias1
    full join t_join_0035_02 alias2 on
        alias1.w_zip = alias2.w_street_2,
        t_join_0035_04)alias9
full join t_join_0035_03 on
    alias9.alias7 != t_join_0035_03.d_id
where
    alias9.alias8 = 2
    or alias9.alias7 = 2
order by alias7, alias8, alias6;

drop table if exists t_join_0035_01;
drop table if exists t_join_0035_02;
drop table if exists t_join_0035_03;
drop table if exists t_join_0035_04;

预期输出

8 rows fetched

实际输出

5 rows fetched

日志信息

image.png

提单组织

内部开发

测试代码

likedislike
hcshcs成员
29 天前 添加了label:bug
opengauss_botopengauss_bot成员
29 天前 添加了label:sig/StorageEngine
opengauss_bot
opengauss_bot成员
29 天前 评论:

Welcome To openGauss Community

Hey @Nerifish , 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: StorageEngine ,
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: @CityYard, @libiao2024, @lijieac, @theothersideofsea, @wang_bowen, @weithu, @xiong_xjun, @yuanyazhi, @zhangzq131 .

likedislike
hcshcs成员
29 天前 关联了pull request:修复hashjoin相关问题
sungang14sungang14成员
26 天前 关联了看板:openGauss 7.0.0-LTS
hcs
hcs成员
20 天前 评论:

image.png

likedislike
hcshcs成员
20 天前 issue状态由 待办的 改变为 待回归
陈博达
陈博达成员
18 天前 评论:

【回归日期】20260911

【回归人员】陈博达

【回归结论】通过

测试结果

image.png

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