[ 
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)

Reply via email to