timeabarna commented on a change in pull request #5358: URL: https://github.com/apache/nifi/pull/5358#discussion_r740973732
########## File path: nifi-nar-bundles/nifi-hive-bundle/nifi-hive3-processors/src/main/java/org/apache/nifi/util/hive/HiveJdbcCommon.java ########## @@ -298,14 +316,32 @@ public static Schema createSchema(final ResultSet rs, String recordName, boolean // Did not find direct suitable type, need to be clarified!!!! case DECIMAL: case NUMERIC: - builder.name(columnName).type().unionOf().nullBuilder().endNull().and().stringType().endUnion().noDefault(); + if (useLogicalTypes) { + final int precision = meta.getPrecision(i) > 1 ? meta.getPrecision(i) : 10; Review comment: Thanks @exceptionfactory If for some reason there would be an incorrect value (0 or less for precision, negative number for scale) for either precision or scale I set the precision for Hive default which is 10 for precision and 0 for scale. -- 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