JkSelf commented on pull request #28954:
URL: https://github.com/apache/spark/pull/28954#issuecomment-652289881
@manuzhang I run the `test("Empty stage coalesced to 0-partition RDD")` in
`AdaptiveQueryExecSuite`. It seems there is no unnecessary tasks for the empty
partitions. The Spark UI is as following. And can you give a simple examples
to reproduce this issue? Thanks.

The related code is :
```
spark.conf.set("spark.sql.adaptive.enabled", "true")
spark.conf.set("spark.sql.autoBroadcastJoinThreshold", "-1")
val df1 = spark.range(10).withColumn("a", 'id)
val df2 = spark.range(10).withColumn("b", 'id)
val result = df1.where('a > 10).join(df2.where('b > 10),
"id").groupBy('a).count()
result.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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]