ShashidharM0118 opened a new pull request, #18776:
URL: https://github.com/apache/datafusion/pull/18776

   ## Which issue does this PR close?
   
   - Closes  #18595
   
   ## Rationale for this change
   
   Small datasets were undergoing unnecessary repartitioning, causing overhead 
without performance benefit. This change ensures that small Parquet datasets 
use single-partition aggregation.
   
   ## What changes are included in this PR?
   
   - Added a condition in the physical planner to check Parquet row count 
statistics before repartitioning. If the dataset is smaller than the 
`batch_size`, the planner selects `AggregateMode::Single`.
   - Updated the `aggregate_repartition.slt` test file to expect 
`AggregateExec: mode=Single` for small Parquet datasets.
   
   ## Are these changes tested?
   
   Yes
   ## Are there any user-facing changes?
   
   Yes


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