Dragoș Moldovan-Grünfeld created ARROW-14842:
------------------------------------------------
Summary: [C++] Improve precision range error messages for
Decimal128Type/Decimal256Type
Key: ARROW-14842
URL: https://issues.apache.org/jira/browse/ARROW-14842
Project: Apache Arrow
Issue Type: Improvement
Components: C, R
Reporter: Dragoș Moldovan-Grünfeld
The error message surfaces in R like so:
{code:r}
decimal(0, 2)
Error: Invalid: Decimal precision out of range: 0
{code}
and
{code:r}
decimal(100, 2)
Error: Invalid: Decimal precision out of range: 100
{code}
This isn't very informative as it doesn't specify what the range should be (1
to 38 for Decimal128Type, for example).
--
This message was sent by Atlassian Jira
(v8.20.1#820001)