You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Csaba Ringhofer (JIRA)" <ji...@apache.org> on 2018/09/11 12:58:00 UTC

[jira] [Created] (IMPALA-7558) Optimize AddInterval timezone functions similarly to IMPALA-7521

Csaba Ringhofer created IMPALA-7558:
---------------------------------------

             Summary: Optimize AddInterval timezone functions similarly to IMPALA-7521 
                 Key: IMPALA-7558
                 URL: https://issues.apache.org/jira/browse/IMPALA-7558
             Project: IMPALA
          Issue Type: Improvement
          Components: Backend
            Reporter: Csaba Ringhofer


Currently AddInterval functions use boost's ptime and duration classes + there is a lot wrapper code to avoid exceptions caused by out of range timestamps and overflows caused by large intervals.

A different way would be to split the intervals to day + time_of_day, and add these to TimestampValue::date_/time_ directly + handle day overflow. This would probably make these functions much faster and would not increase complexity, because most of this logic is already needed to avoid boost overflows.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)