matrixorigin / matrixone

Hyperconverged cloud-edge native database
https://docs.matrixorigin.cn/en
Apache License 2.0
1.71k stars 265 forks source link

[Bug]: Prepare Shuffle Join Panic #17347

Closed zengyan1 closed 5 hours ago

zengyan1 commented 4 days ago

Is there an existing issue for the same bug?

Branch Name

main

Commit ID

6bb22a3

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

ERROR 20101 (HY000): internal error: panic runtime error: invalid memory address or nil pointer dereference: github.com/matrixorigin/matrixone/pkg/sql/compile.constructShuffleJoinArg matrixone/pkg/sql/compile/operator.go:132

Expected Behavior

No response

Steps to Reproduce

create table t1(a int);
create table t2(a int);
insert into t1 select * from generate_series(1,20000000,1)g;
insert into t2 select * from generate_series(1,10000000,1)g;
prepare stmt1 from 'select count(*) from (t1 join t2 on t1.a=t2.a%?)';

Additional information

No response

zengyan1 commented 4 days ago

计划被https://github.com/matrixorigin/matrixone/pull/17332 修复