jackwener opened a new issue, #4822:
URL: https://github.com/apache/arrow-datafusion/issues/4822

   **Describe the bug**
   
   before
   ```sql
   "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 OR partsupp.ps_partkey = 
part.p_partkey) AND (part.p_brand = Utf8("Brand#12") OR partsupp.ps_partkey = 
part.p_partkey) AND (part.p_partkey = partsupp.ps_partkey OR part.p_partkey = 
lineitem.l_partkey) AND (part.p_partkey = partsupp.ps_partkey OR part.p_brand = 
Utf8("Brand#23")) AND (part.p_partkey = partsupp.ps_partkey OR 
partsupp.ps_partkey = part.p_partkey)
         CrossJoin:
           Filter: (part.p_partkey = lineitem.l_partkey OR part.p_partkey = 
lineitem.l_partkey) AND (part.p_partkey = lineitem.l_partkey OR part.p_brand = 
Utf8("Brand#23")) AND (part.p_brand = Utf8("Brand#12") OR part.p_partkey = 
lineitem.l_partkey)
             CrossJoin:
               TableScan: lineitem
               Filter: part.p_brand = Utf8("Brand#12") OR part.p_brand = 
Utf8("Brand#23")
                 TableScan: part, partial_filters=[part.p_brand = 
Utf8("Brand#12") OR part.p_brand = Utf8("Brand#23")]
           TableScan: partsupp"
   ```
   
   after
   ```sql
   "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 = lineitem.l_partkey AND part.p_brand = 
Utf8("Brand#23")
         Inner Join: part.p_partkey = partsupp.ps_partkey
           Filter: part.p_brand = Utf8("Brand#23") AND part.p_brand = 
Utf8("Brand#12")
             Inner Join: lineitem.l_partkey = part.p_partkey
               TableScan: lineitem
               Filter: part.p_brand = Utf8("Brand#12") OR part.p_brand = 
Utf8("Brand#23")
                 TableScan: part, partial_filters=[part.p_brand = 
Utf8("Brand#12") OR part.p_brand = Utf8("Brand#23")]
           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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to