Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-6656

Bug in ORC Timestamp reader returns wrong nanoseconds

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.13.0, 0.14.0
    • 0.13.0
    • None

    Description

      ORC timestamp writer stores the number of trailing zeros in 3 LSB bits. There is a bug in parsing nanosecond logic that returns incorrect value.

      Input:
      1999-01-01 00:00:00.999999999

      Output:
      1999-01-01 00:00:00.463129087

      The fix for this is parseNanos() should first right shift by 3 and then typecast to int.

      Attachments

        1. HIVE-6656.1.patch.txt
          4 kB
          Prasanth Jayachandran
        2. HIVE-6656.1.patch
          4 kB
          Prasanth Jayachandran

        Activity

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

          People

            prasanth_j Prasanth Jayachandran Assign to me
            prasanth_j Prasanth Jayachandran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment