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 FROM t1 LEFT JOIN t2 ON a = b").explain(true)
Expected optimized plan:
== Optimized Logical Plan == Aggregate [newAlias#8L], [newAlias#8L] +- Project [id#0L AS newAlias#8L] +- Range (0, 200, step=1, splits=Some(2))
Attachments
Issue Links
- is cloned by
-
SPARK-38489 Aggregate.groupOnly support foldable expressions
- Resolved
- links to