pgaref commented on a change in pull request #1823: URL: https://github.com/apache/hive/pull/1823#discussion_r566941929
########## File path: ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestOrcFile.java ########## @@ -325,7 +326,7 @@ public void testReadFormat_0_11() throws Exception { + "binary,string1:string,middle:struct<list:array<struct<int1:int," + "string1:string>>>,list:array<struct<int1:int,string1:string>>," + "map:map<string,struct<int1:int,string1:string>>,ts:timestamp," - + "decimal1:decimal(38,18)>", readerInspector.getTypeName()); + + "decimal1:decimal(38,10)>", readerInspector.getTypeName()); Review comment: Seems that that type scale was not properly propaged before and was using HiveDecimal.SYSTEM_DEFAULT_SCALE which is 18: https://github.com/apache/hive/blob/ff6f3565e50148b7bcfbcf19b970379f2bd59290/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcStruct.java#L607 This is actually in-line with ORC tests for the same file: https://github.com/apache/orc/blob/b54d10cedf5ec1529cf06d77268510c216402cba/java/core/src/test/org/apache/orc/impl/TestRecordReaderImpl.java#L141 ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org