[ https://issues.apache.org/jira/browse/SPARK-30518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Takeshi Yamamuro resolved SPARK-30518. -------------------------------------- Fix Version/s: 3.0.0 Assignee: wuyi Resolution: Fixed Resolved by https://github.com/apache/spark/pull/27217 > Precision and scale should be same for values between -1.0 and 1.0 in Decimal > ----------------------------------------------------------------------------- > > Key: SPARK-30518 > URL: https://issues.apache.org/jira/browse/SPARK-30518 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.0.0 > Reporter: wuyi > Assignee: wuyi > Priority: Major > Fix For: 3.0.0 > > > Currently, for values between -1.0 and 1.0, precision and scale is > inconsistent between Decimal and DecimalType. For example, for numbers like > 0.3, it has (precision, scale) as (2, 1) in Decimal, but (1, 1) in > DecimalType. We should make Decimal be consistent with DecimalType. -- 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