kezhuoquan created HIVE-29560:
---------------------------------
Summary: 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.2.0, 4.1.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
Fix For: 4.2.0, 4.1.0
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)