Github user cloud-fan commented on the issue: https://github.com/apache/spark/pull/19755 How do you define "correctly"? Logically I think it makes sense to not duplicate subquery in the query plan, but your concern about how to distinguish `reused` and `not reused` subquery is also valid. So my proposal is to use different plan node name to distinguish them.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org