timeabarna commented on a change in pull request #5358: URL: https://github.com/apache/nifi/pull/5358#discussion_r740972237
########## File path: nifi-nar-bundles/nifi-hive-bundle/nifi-hive3-processors/src/main/java/org/apache/nifi/util/hive/HiveJdbcCommon.java ########## @@ -149,7 +154,16 @@ public static long convertToAvroStream(final ResultSet rs, final OutputStream ou // org.apache.avro.AvroRuntimeException: Unknown datum type java.lang.Byte rec.put(i - 1, ((Byte) value).intValue()); - } else if (value instanceof BigDecimal || value instanceof BigInteger) { + } else if (value instanceof BigDecimal) { + if (useLogicalTypes) { + final int precision = meta.getPrecision(i) > 1 ? meta.getPrecision(i) : 10; Review comment: Thanks @exceptionfactory for your help, I've modified the code based on your recommendations. -- 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: issues-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org