ajantha-bhat opened a new pull request #3940:
URL: https://github.com/apache/carbondata/pull/3940


    ### Why is this PR needed?
   Reading negative decimal numbers gives the wrong value from presto.
    
    ### What changes were proposed in this PR?
    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.
   Originally added a TODO to find what is happening at write step for decimal, 
handled as part of this issue.
       
    ### Does this PR introduce any user interface change?
    - No
   
    ### Is any new testcase added?
    - Yes
   
       
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to