[
https://issues.apache.org/jira/browse/ARROW-16600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated ARROW-16600:
-----------------------------------
Labels: pull-request-available (was: )
> [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
> Time Spent: 10m
> 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)