You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Weston Pace (Jira)" <ji...@apache.org> on 2021/09/23 22:04:00 UTC

[jira] [Created] (ARROW-14110) [C++] Decimal promotion rules should consider inflating type

Weston Pace created ARROW-14110:
-----------------------------------

             Summary: [C++] Decimal promotion rules should consider inflating type
                 Key: ARROW-14110
                 URL: https://issues.apache.org/jira/browse/ARROW-14110
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Weston Pace


I'm not sure how strongly I feel about this but, for example:

{code:python}
Decimal(20, 4) / Decimal(20, 4) => Decimal(41, 21)
{code}

Decimal(20, 4) is in range for 128 but Decimal(41, 21) is out of range for 128 (but in range for 256).

Currently calling divide with two 128 bit decimals will fail but it could promote to a decimal 256.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)