Description
spark.range(200L).selectExpr("id AS a").createTempView("t1") spark.range(300L).selectExpr("id AS b").createTempView("t2") spark.sql("SELECT DISTINCT a AS newAlias, true FROM t1 LEFT JOIN t2 ON a = b").explain(true)
Expected optimized plan:
== Optimized Logical Plan == Aggregate [newAlias#8L], [newAlias#8L, true#9L] +- Project [id#0L AS newAlias#8L, true#9L] +- Range (0, 200, step=1, splits=Some(2))
Attachments
Issue Links
- is a clone of
-
SPARK-37292 Removes outer join if it only has DISTINCT on streamed side with alias
- Resolved
- links to