[ https://issues.apache.org/jira/browse/SPARK-36373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-36373: ------------------------------------ Assignee: Apache Spark > DecimalPrecision only add necessary cast > ---------------------------------------- > > Key: SPARK-36373 > URL: https://issues.apache.org/jira/browse/SPARK-36373 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.3.0 > Reporter: Yuming Wang > Assignee: Apache Spark > Priority: Major > > For example: > {noformat} > EqualTo(AttributeReference("d1", DecimalType(5, 2))(), > AttributeReference("d2", DecimalType(2, 1))()) > {noformat} > It will add a useless cast to {{d1}}: > {noformat} > (cast(d1#6 as decimal(5,2)) = cast(d2#7 as decimal(5,2))) > {noformat} -- 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