[
https://issues.apache.org/jira/browse/ARROW-14110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Li updated ARROW-14110:
-----------------------------
Labels: kernel (was: )
> [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
> Priority: Major
> Labels: kernel
>
> 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)