[ 
https://issues.apache.org/jira/browse/HIVE-24353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Mollitor resolved HIVE-24353.
-----------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Pushed to master.  Thank you very much [~vince83].

If you poke around I'm sure there is other parsing code that could use the same 
treatment.

> performance: Refactor TimestampTZ parsing
> -----------------------------------------
>
>                 Key: HIVE-24353
>                 URL: https://issues.apache.org/jira/browse/HIVE-24353
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Vincenz Priesnitz
>            Assignee: Vincenz Priesnitz
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> 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] 
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to