[ 
https://issues.apache.org/jira/browse/HIVE-29560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HIVE-29560:
----------------------------------
    Labels: pull-request-available  (was: )

> JdbcColumn incorrectly maps DECIMAL to BigInteger instead of BigDecimal
> -----------------------------------------------------------------------
>
>                 Key: HIVE-29560
>                 URL: https://issues.apache.org/jira/browse/HIVE-29560
>             Project: Hive
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 4.1.0, 4.2.0
>         Environment: Hive Version:
> All affected versions (confirmed in 3.x, 4.0.x, 4.1.x, and 4.2.x branches)
> Specifically tested with Hive 4.2.0
>            Reporter: kezhuoquan
>            Assignee: kezhuoquan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0, 4.2.0
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> The {{JdbcColumn.columnClassName()}} method incorrectly maps SQL {{DECIMAL}} 
> type to {{BigInteger.class.getName()}} instead of 
> {{BigDecimal.class.getName()}} 
> [https://github.com/apache/hive/blob/branch-4.2/jdbc/src/java/org/apache/hive/jdbc/JdbcColumn.java#L100]
> h3. Current Incorrect Behavior
> {code:java}
> case Types.DECIMAL:
> return BigInteger.class.getName(); {code}
> h3. Expected Correct Behavior
> {code:java}
> case Types.DECIMAL:
> return BigDecimal.class.getName(); {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to