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

[Java] Enable configurable scale coercion of BigDecimal

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.0.0
    • 9.0.0
    • Java

    Description

      Per ARROW-16427, JDBC drivers sometimes return ResultSets where the scale of BigDecimals in a single column differs by row.  The existing mapping requires exact match of scale to the target Arrow vector that was created based on ResultSetMetaData (or configuration), and when any row does not match exactly, an Exception is thrown.

      To support JDBC drivers where scale may be inconsistent by row, Arrow should allow a less-strict mode that coerces BigDecimals to target vectors with greater scale.  The default strict behavior should be retained, but it may be useful to allow coercion to proper target scale. 

      Attachments

        Issue Links

          Activity

            People

              toddfarmer Todd Farmer
              toddfarmer Todd Farmer
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 50m
                  50m