wangyum opened a new pull request, #37451:
URL: https://github.com/apache/spark/pull/37451

   ### What changes were proposed in this pull request?
   
   This PR enhances `CoalesceShufflePartitions` to adaptive adjustment 
`spark.sql.adaptive.advisoryPartitionSizeInBytes` according to the `ExpandExec` 
operator that follows. For example:
   ```sql
   SELECT                                          
     item.i_brand_id brand_id,                     
     item.i_brand brand,                           
     count(distinct ss_ext_sales_price),          
     count(distinct ss_addr_sk)                   
   FROM store_sales, item                          
   WHERE store_sales.ss_item_sk = item.i_item_sk   
     AND item.i_manufact_id = 128                  
   GROUP BY item.i_brand, item.i_brand_id          
   ```
   
   ### Why are the changes needed?
   
   Improve parallelism.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Unit test.


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