You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2022/06/03 16:41:00 UTC
[jira] [Work started] (HIVE-26289) Remove useless try catch in DataWritableReadSupport#getWriterDateProleptic
[ https://issues.apache.org/jira/browse/HIVE-26289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on HIVE-26289 started by Stamatis Zampetakis.
--------------------------------------------------
> Remove useless try catch in DataWritableReadSupport#getWriterDateProleptic
> --------------------------------------------------------------------------
>
> Key: HIVE-26289
> URL: https://issues.apache.org/jira/browse/HIVE-26289
> Project: Hive
> Issue Type: Task
> Components: HiveServer2
> Reporter: Stamatis Zampetakis
> Assignee: Stamatis Zampetakis
> Priority: Trivial
>
> {code:java}
> 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);
> }
> {code}
> The Boolean.valueOf never throws so try catch block is completely useless.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)