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

Wrong scale used by ConvertDecimal64ToDecimal results in incorrect results

    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.3.patch
          488 kB
          Prasanth Jayachandran
        2. HIVE-20004.2.patch
          449 kB
          Prasanth Jayachandran
        3. HIVE-20004.1.patch
          1 kB
          Prasanth Jayachandran

        Activity

          People

            prasanth_j Prasanth Jayachandran
            prasanth_j Prasanth Jayachandran
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: