Csaba Ringhofer created IMPALA-7521:
---------------------------------------

             Summary: CLONE - Speed up sub-second unix time->TimestampValue 
conversions
                 Key: IMPALA-7521
                 URL: https://issues.apache.org/jira/browse/IMPALA-7521
             Project: IMPALA
          Issue Type: Improvement
          Components: Backend
            Reporter: Csaba Ringhofer
            Assignee: Csaba Ringhofer


Currently Impala converts from sub-second unix time to TimestampValue (which is 
split do date_ and time_ similarly to boost::posix_time::ptime ) by first 
splitting the input into seconds and sub-seconds part, converting the seconds 
part with  boost::posix_time::from_time_t(), and then adding the sub-seconds 
part to this timestamp. This can be done much faster  by splitting the 
sub-second input into date_ and time_ directly.

Avoiding boost::posix_time::from_time_t() would be also nice because it can 
only deal with timestamps from 1677 to 2262, which adds extra complexity to the 
related code.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to