Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-26289

Remove useless try catch in DataWritableReadSupport#getWriterDateProleptic

    XMLWordPrintableJSON

Details

    Description

          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);
          }
      

      The Boolean.valueOf never throws so try catch block is completely useless.

      Attachments

        Issue Links

          Activity

            People

              zabetak Stamatis Zampetakis
              zabetak Stamatis Zampetakis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m