[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](https://private-user-images.githubusercontent.com/39627130/337232625-33f742cc-be17-4496-914e-09218a621970.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NjI4MzIsIm5iZiI6MTcyMDU2MjUzMiwicGF0aCI6Ii8zOTYyNzEzMC8zMzcyMzI2MjUtMzNmNzQyY2MtYmUxNy00NDk2LTkxNGUtMDkyMThhNjIxOTcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDIyMDIxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ1NjAyYjU3YmExYTQxNTBiMmFlOTFkMTAyODhkYTA3MjQwZDdiM2EyMDQ0MzU3YmRlZGNhMDQ0NzI4NjZmNDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.knyqqfaakHDAsOGe8P-C4nCgBucjdJ2SvPnXe-hwXMw)
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确实有问题。