You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/05/23 05:46:50 UTC

[GitHub] [spark] wangyum commented on pull request #29120: [SPARK-32291][SQL] COALESCE should not reduce the child parallelism if it contains a Join

wangyum commented on pull request #29120:
URL: https://github.com/apache/spark/pull/29120#issuecomment-846507897


   This change will introduce an additional shuffle. We can use `localCheckpoint` to workaround this issue:
   ```scala
   spark.range(100).createTempView("t1")
   spark.range(200).createTempView("t2")
   spark.sql("set spark.sql.autoBroadcastJoinThreshold=0")
   spark.sql("select t1.* from t1 join t2 on (t1.id = t2.id)").localCheckpoint().coalesce(1).show()
   ```


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org