[
https://issues.apache.org/jira/browse/ARROW-16600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Li resolved ARROW-16600.
------------------------------
Fix Version/s: 9.0.0
Resolution: Fixed
Issue resolved by pull request 13433
[https://github.com/apache/arrow/pull/13433]
> [Java] Enable configurable scale coercion of BigDecimal
> -------------------------------------------------------
>
> Key: ARROW-16600
> URL: https://issues.apache.org/jira/browse/ARROW-16600
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Java
> Affects Versions: 8.0.0
> Reporter: Todd Farmer
> Assignee: Todd Farmer
> Priority: Major
> Labels: pull-request-available
> Fix For: 9.0.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)