matrixorigin / matrixone

Hyperconverged cloud-edge native database

Home Page:https://docs.matrixorigin.cn/en

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: pushdown the "in" expr instead of the "or" chain

XuPeng-SH opened this issue · comments

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main,1.2

Commit ID

latest

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

image

Expected Behavior

pushdown the "in" expr instead of the "or" chain

Steps to Reproduce

create table t1 (a int primary key,b int,c int, key c_1(c));
insert into t1 (select *,*,* from generate_series(1,1000000,1)g);
prepare s1 from select * from t1 where c in (?,?,?);
set @a=1;
set @b=10;
set @c=100;
execute s1 using @a,@b,@c;

Additional information

No response

试了下非prepare语句是可以正确推in表达式的,prepare确实有问题。