Ted-Jiang commented on issue #2725:
URL: 
https://github.com/apache/arrow-datafusion/issues/2725#issuecomment-1153601688

   Debug log
   ```
   After apply projection_push_down rule:
   
   Optimized logical plan:
   Limit: 50000
     Projection: #LINEORDER.LO_SHIPMODE, #ASS
       Projection: #LO_SHIPMODE AS LINEORDER.LO_SHIPMODE, 
#APPROXCOUNTDISTINCT(_KY_COUNT_DISTINCT_LINEORDER_LO_SHIPPRIORITY_LINEORDER_LO_SUPPKEY_,UInt8(10))
 AS ASS
         Aggregate: groupBy=[[#LO_SHIPMODE]], 
aggr=[[testAPPROXCOUNTDISTINCT(#_KY_COUNT_DISTINCT_LINEORDER_LO_SHIPPRIORITY_LINEORDER_LO_SUPPKEY_,
 UInt8(10))]]
           Projection: #LO_SHIPMODE, 
#_KY_COUNT_DISTINCT_LINEORDER_LO_SHIPPRIORITY_LINEORDER_LO_SUPPKEY_
             Filter: #LO_SHIPMODE IN ([Utf8("SHIP"), Utf8("Rail"), 
Utf8("2321"), Utf8("MAIL")])
               Projection: #LO_SHIPMODE, 
#_KY_COUNT_DISTINCT_LINEORDER_LO_SHIPPRIORITY_LINEORDER_LO_SUPPKEY_
                 Projection: #ssb@[email protected] AS 
LO_SHIPMODE, #ssb@[email protected] AS 
_KY_COUNT_DISTINCT_LINEORDER_LO_SHIPPRIORITY_LINEORDER_LO_SUPPKEY_
                   TableScan: ssb@test_udaf_cube_update@17179869183 
projection=Some([12, 36])
   
   After apply filter_push_down rule:
   
   Optimized logical plan:
   Limit: 50000
     Projection: #LINEORDER.LO_SHIPMODE, #ASS
       Projection: #LO_SHIPMODE AS LINEORDER.LO_SHIPMODE, 
#APPROXCOUNTDISTINCT(_KY_COUNT_DISTINCT_LINEORDER_LO_SHIPPRIORITY_LINEORDER_LO_SUPPKEY_,UInt8(10))
 AS ASS
         Aggregate: groupBy=[[#LO_SHIPMODE]], 
aggr=[[testAPPROXCOUNTDISTINCT(#_KY_COUNT_DISTINCT_LINEORDER_LO_SHIPPRIORITY_LINEORDER_LO_SUPPKEY_,
 UInt8(10))]]
           Projection: #LO_SHIPMODE, 
#_KY_COUNT_DISTINCT_LINEORDER_LO_SHIPPRIORITY_LINEORDER_LO_SUPPKEY_
             Projection: #LO_SHIPMODE, 
#_KY_COUNT_DISTINCT_LINEORDER_LO_SHIPPRIORITY_LINEORDER_LO_SUPPKEY_
               Projection: #ssb@[email protected] AS 
LO_SHIPMODE, #ssb@[email protected] AS 
_KY_COUNT_DISTINCT_LINEORDER_LO_SHIPPRIORITY_LINEORDER_LO_SUPPKEY_
                 Filter: #LO_SHIPMODE IN ([Utf8("SHIP"), Utf8("Rail"), 
Utf8("2321"), Utf8("MAIL")])
                   TableScan: ssb@test_udaf_cube_update@17179869183 
projection=Some([12, 36]), partial_filters=[#LO_SHIPMODE IN ([Utf8("SHIP"), 
Utf8("Rail"), Utf8("2321"), Utf8("MAIL")])]
   
   After apply limit_push_down rule:
   ```


-- 
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