spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Gaido (JIRA)" <>
Subject [jira] [Created] (SPARK-28235) Decimal sum return type
Date Tue, 02 Jul 2019 19:43:00 GMT
Marco Gaido created SPARK-28235:

             Summary: Decimal sum return type
                 Key: SPARK-28235
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Marco Gaido

Our implementation of decimal operations follows SQLServer behavior. As per,
the result of sum operation should be `DECIMAL(38, s)` while currently we are setting it to
`DECIMAL(10 + p, s)`. This means that with large datasets, we may incur in overflow, even
though we may have been able to represent the value with higher precision and SQLServer returns
correct results in that case.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message