wangyum commented on PR #43841:
URL: https://github.com/apache/spark/pull/43841#issuecomment-1815633494

   This change does not affect adding repartition before aggregation:
   ```scala
   spark.table("t1").repartition(10).groupBy("a").count().explain(true)
   ```
   
   ```
   == Physical Plan ==
   AdaptiveSparkPlan isFinalPlan=false
   +- HashAggregate(keys=[a#16L], functions=[count(1)], output=[a#16L, 
count#23L])
      +- Exchange hashpartitioning(a#16L, 5), ENSURE_REQUIREMENTS, [plan_id=62]
         +- HashAggregate(keys=[a#16L], functions=[partial_count(1)], 
output=[a#16L, count#28L])
            +- Exchange RoundRobinPartitioning(10), REPARTITION_BY_NUM, 
[plan_id=58]
               +- FileScan parquet spark_catalog.default.t1[a#16L]
   ```
   


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