cloud-fan edited a comment on pull request #28954: URL: https://github.com/apache/spark/pull/28954#issuecomment-652219037
After more thoughts, maybe a better way is to add a new rule in `AdaptiveSparkPlanExec.optimizer`, which converts `LogicalQueryStage` to empty `LocalRelation` if the size is 0. This is not really "coalesce partitions" and we'd better not do it in `CoalesceShufflePartitions`. ---------------------------------------------------------------- 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]
