LiaCastaneda opened a new issue, #18399:
URL: https://github.com/apache/datafusion/issues/18399

   ### Is your feature request related to a problem or challenge?
   
   
   Currently, `AggregateExec` does not implement `FilterPushdownPropagation`, 
which means 
   dynamic filters  cannot pass through aggregations. 
   
   In most cases this is correct behavior - when aggregate functions like 
`SUM()`, 
   `COUNT()`, `AVG()` are used, filtering rows before aggregation would produce 
incorrect 
   results. 
   
   However, there's an important special case: pure grouping operations 
(`DISTINCT` 
   or `GROUP BY` without aggregate functions). For these operations, it's safe 
to push 
   filters through because they only de-duplicate data without computing new 
values. This blocks significant optimization opportunities for queries with 
DISTINCT or pure 
   GROUP BY on the probe side of inner joins i think
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to