Lantao Jin created SPARK-34122: ---------------------------------- Summary: 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
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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org