Skip to content

PushdownFilter rule exist bug will cause filter change wrong #4822

@jackwener

Description

@jackwener

Describe the bug

before

Projection: part.p_partkey, SUM(lineitem.l_extendedprice), AVG(lineitem.l_discount), COUNT(DISTINCT partsupp.ps_suppkey)                                                                                                                         |
  Aggregate: groupBy=[[part.p_partkey]], aggr=[[SUM(lineitem.l_extendedprice), AVG(lineitem.l_discount), COUNT(DISTINCT partsupp.ps_suppkey)]]                                                                                                   |
    Filter: part.p_partkey = lineitem.l_partkey AND part.p_brand = Utf8("Brand#12") AND part.p_partkey = partsupp.ps_partkey OR part.p_partkey = lineitem.l_partkey AND part.p_brand = Utf8("Brand#23") AND partsupp.ps_partkey = part.p_partkey |
      CrossJoin:                                                                                                                                                                                                                                 |
        CrossJoin:                                                                                                                                                                                                                               |
          TableScan: lineitem                                                                                                                                                                                                                    |
          TableScan: part                                                                                                                                                                                                                        |
        TableScan: partsupp   

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions