Yuming Wang created SPARK-36373:
-----------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]