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

Wrong scale used by ConvertDecimal64ToDecimal results in incorrect results

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: Closed
    • Critical
    • Resolution: Fixed
    • 3.1.0, 3.0.1, 4.0.0
    • 3.2.0, 4.0.0-alpha-1
    • None
    • None

    Description

      ConvertDecimal64ToDecimal uses scale from output column vector which results in incorrect results.

      Input: decimal(8,1) Output: decimal(9,2)

      Input value: 963.8 gets converted to 96.38 which is wrong. The scale should not change this case (value should be 963.8 even after the conversion). 

      Attachments

        1. HIVE-20004.1.patch
          1 kB
          Prasanth Jayachandran
        2. HIVE-20004.2.patch
          449 kB
          Prasanth Jayachandran
        3. HIVE-20004.3.patch
          488 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:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment