You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2022/06/03 16:13:00 UTC

[jira] [Created] (HIVE-26289) Remove useless try catch in DataWritableReadSupport#getWriterDateProleptic

Stamatis Zampetakis created HIVE-26289:
------------------------------------------

             Summary: 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


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