You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/01/15 05:17:00 UTC
[jira] [Assigned] (SPARK-34122) Remove duplicated branches in case
when
[ https://issues.apache.org/jira/browse/SPARK-34122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-34122:
------------------------------------
Assignee: (was: Apache Spark)
> Remove duplicated branches in case when
> ---------------------------------------
>
> Key: SPARK-34122
> URL: https://issues.apache.org/jira/browse/SPARK-34122
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.2.0
> Reporter: Lantao Jin
> Priority: Minor
>
> CaseWhen with duplicated branches could be dedup
> {code}
> SELECT CASE WHEN key = 1 THEN 1 WHEN key = 1 THEN 1 WHEN key = 1 THEN 1
> ELSE 2 END FROM testData WHERE key = 1 group by key
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org