Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-7521

CLONE - Speed up sub-second unix time->TimestampValue conversions

    XMLWordPrintableJSON

    Details

    • Epic Color:
      ghx-label-3

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                csringhofer Csaba Ringhofer
                Reporter:
                csringhofer Csaba Ringhofer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: