You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Yibo Cai (Jira)" <ji...@apache.org> on 2021/11/25 02:47:00 UTC
[jira] [Assigned] (ARROW-14842) [C++] Improve precision range error messages for Decimal128Type/Decimal256Type
[ https://issues.apache.org/jira/browse/ARROW-14842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yibo Cai reassigned ARROW-14842:
--------------------------------
Assignee: Yibo Cai
> [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
> Assignee: Yibo Cai
> Priority: Major
>
> 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}
>
> Could we improve the error message to be a bit more informative? As it is 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)