org.apache.spark.sql.execution
Find out duplicated subqueries in the spark plan, then use the same subquery result for all the references.
Find out duplicated subqueries in the spark plan, then use the same subquery result for all the references.