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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment