Skip to content

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

Closed

Description

@XuPeng-SH

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

Activity

  1. added
    kind/bug
    severity/s0
    on Jun 6, 2024
  2. added this to the 1.2.1 milestone on Jun 6, 2024
  3. modified the milestones: 1.2.1, 1.3.0 on Jun 7, 2024
  4. aunjgr commented on Jun 7, 2024

    @aunjgr
    Contributor

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

  5. assigned and unassigned on Jun 11, 2024
  6. modified the milestones: 1.3.0, 1.2.1 on Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/performancekind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions