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

performance: Refactor TimestampTZ parsing

    XMLWordPrintableJSON

Details

    Description

      I found that for datasets that contain a lot of timestamps (without timezones) hive spends the majority of time in TimestampTZUtil.parse, in particular constructing stractraces for the try-catch blocks. 

      When parsing TimestampTZ we are currently using a fallback chain with several try-catch blocks. For a common timestamp string without a timezone, we currently throw and catch 2 exceptions, and actually parse the string twice. 

      I propose a refactor, that parses the string once and then expresses the fallback chain with queries to the parsed TemporalAccessor. 

       

      Update: I added a PR that resolves this issue: https://github.com/apache/hive/pull/1650 

       

       

      Attachments

        Issue Links

          Activity

            People

              vince83 Vincenz Priesnitz
              vince83 Vincenz Priesnitz
              Votes:
              0 Vote for this issue
              Watchers:
              7 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 - 1h 50m
                  1h 50m