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

   ### Is your feature request related to a problem or challenge?
   
   Grouped aggregation currently inserts a hash `RepartitionExec` when grouping 
by `date_bin` or `date_trunc` over a range-partitioned input, even when the 
existing partitioning keeps each group local to one input partition.
   
   #25344 establishes how functions expose that they support range-partitioning 
analysis, but the partition-satisfaction and aggregation-planning logic must 
use that information before the unnecessary repartition can be removed.
   
   ### Describe the solution you'd like
   
   Use the range-transformation information exposed by #25344 to determine when 
the existing range partitioning keeps each group local to one input partition.
   
   When that guarantee holds, allow grouped aggregation to use the existing 
range partitioning instead of inserting a hash `RepartitionExec`.
   
   Grouped aggregation will be the first consumer, but the underlying range 
information should remain usable by other operators in future work.
   
   ### Additional context
   
   Part of #23569. Depends on #25344.


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