You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/06/03 17:49:00 UTC

[jira] [Updated] (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 ]

ASF GitHub Bot updated HIVE-26289:
----------------------------------
    Labels: pull-request-available  (was: )

> 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
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {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)