You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (Jira)" <ji...@apache.org> on 2021/11/11 13:29:00 UTC
[jira] [Created] (SPARK-37292) Removes outer join if it only has
DISTINCT on streamed side with alias
Yuming Wang created SPARK-37292:
-----------------------------------
Summary: Removes outer join if it only has DISTINCT on streamed side with alias
Key: SPARK-37292
URL: https://issues.apache.org/jira/browse/SPARK-37292
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 3.3.0
Reporter: Yuming Wang
{code:scala}
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)
{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org