Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-14842

[C++] Improve precision range error messages for Decimal128Type/Decimal256Type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.0.0
    • C, R

    Description

      The error message surfaces in R like so:

      decimal(0, 2)
      Error: Invalid: Decimal precision out of range: 0
      

      and

      decimal(100, 2)
      Error: Invalid: Decimal precision out of range: 100
      

       
      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).

      Attachments

        Issue Links

          Activity

            People

              yibocai Yibo Cai
              dragosmg Dragoș Moldovan-Grünfeld
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m