aiguofer commented on code in PR #39485:
URL: https://github.com/apache/arrow/pull/39485#discussion_r1443546283


##########
java/adapter/jdbc/src/main/java/org/apache/arrow/adapter/jdbc/JdbcToArrowUtils.java:
##########
@@ -164,12 +167,21 @@ public static ArrowType getArrowTypeFromJdbcType(final 
JdbcFieldInfo fieldInfo,
       case Types.INTEGER:
         return new ArrowType.Int(32, true);
       case Types.BIGINT:
-        return new ArrowType.Int(64, true);
+        precision = fieldInfo.getPrecision();
+        if (precision > 18) {
+          return new ArrowType.Decimal(precision, 0);

Review Comment:
   Nvm... I removed this since it broke some tests.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to