This is an automated email from the ASF dual-hosted git repository. zabetak pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push: new cdb1052e24 HIVE-26289: Remove useless try catch in DataWritableReadSupport#getWriterDateProleptic (Stamatis Zampetakis, reviewed by Ayush Saxena) cdb1052e24 is described below commit cdb1052e24ca493c6486fef3dd8956dde61be834 Author: Stamatis Zampetakis <zabe...@gmail.com> AuthorDate: Fri Jun 3 18:14:22 2022 +0200 HIVE-26289: Remove useless try catch in DataWritableReadSupport#getWriterDateProleptic (Stamatis Zampetakis, reviewed by Ayush Saxena) Closes #3341 --- .../hive/ql/io/parquet/read/DataWritableReadSupport.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/read/DataWritableReadSupport.java b/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/read/DataWritableReadSupport.java index ecdd155a31..cd093dd6a5 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/read/DataWritableReadSupport.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/read/DataWritableReadSupport.java @@ -278,15 +278,7 @@ public class DataWritableReadSupport extends ReadSupport<ArrayWritable> { return null; } String value = metadata.get(DataWritableWriteSupport.WRITER_DATE_PROLEPTIC); - try { - if (value != null) { - return Boolean.valueOf(value); - } - } catch (DateTimeException e) { - throw new RuntimeException("Can't parse writer proleptic property stored in file metadata", e); - } - - return null; + return value == null ? null : Boolean.valueOf(value); } /**