Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-3997

Issue in decimal value reading for negative numbers from presto

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: None
    • Labels:
      None

      Description

      When complex decimal column is stored with DIRECT_COMPRESS codec, DataTypeUtil#bigDecimalToByte is used to create a byte array.

      So, while decoding it, need to use DataTypeUtil#byteToBigDecimal to get back the proper value

        Attachments

          Activity

            People

            • Assignee:
              Ajantha_Bhat Ajantha Bhat
              Reporter:
              Ajantha_Bhat Ajantha Bhat
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.5h
                2.5h