Skip to content

Commit

Permalink
HIVE-26289: Remove useless try catch in DataWritableReadSupport#getWr…
Browse files Browse the repository at this point in the history
…iterDateProleptic (Stamatis Zampetakis, reviewed by Ayush Saxena)

Closes #3341
  • Loading branch information
zabetak committed Jun 6, 2022
1 parent 5b67170 commit cdb1052
Showing 1 changed file with 1 addition and 9 deletions.
Expand Up @@ -278,15 +278,7 @@ public static Boolean getWriterDateProleptic(Map<String, String> metadata) {
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);
}

/**
Expand Down

0 comments on commit cdb1052

Please sign in to comment.