You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "wuyi (Jira)" <ji...@apache.org> on 2020/01/15 08:37:00 UTC

[jira] [Created] (SPARK-30518) Precision and scale should be same for values between -1.0 and 1.0 in Decimal

wuyi created SPARK-30518:
----------------------------

             Summary: 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


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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org