[jira] [Created] (CARBONDATA-3997) Issue in decimal value reading for negative numbers from presto

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (CARBONDATA-3997) Issue in decimal value reading for negative numbers from presto

Akash R Nilugal (Jira)
Ajantha Bhat created CARBONDATA-3997:
----------------------------------------

             Summary: Issue in decimal value reading for negative numbers from presto
                 Key: CARBONDATA-3997
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-3997
             Project: CarbonData
          Issue Type: Bug
            Reporter: Ajantha Bhat
            Assignee: Ajantha Bhat


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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)