[ https://issues.apache.org/jira/browse/CARBONDATA-1429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacky Li resolved CARBONDATA-1429. ---------------------------------- Resolution: Fixed Fix Version/s: 1.2.0 > Add a value based compression for decimal data type when decimal is stored as > Int or Long > ----------------------------------------------------------------------------------------- > > Key: CARBONDATA-1429 > URL: https://issues.apache.org/jira/browse/CARBONDATA-1429 > Project: CarbonData > Issue Type: Improvement > Reporter: Manish Gupta > Assignee: Manish Gupta > Priority: Minor > Fix For: 1.2.0 > > Time Spent: 7h > Remaining Estimate: 0h > > Added a value based compression for decimal data type when decimal is stored > as Int or Long > When decimal precision is <= 9, decimal values are stored in 4 bytes but they > are not compressed further based on min and max values as compared with other > primitive data type compression. Therefore now based on min and max value > decimal data falling in Integer range will be further compressed as byte or > short. > When decimal precision is <= 18, decimal values are stored in 8 bytes but > they are not compressed further based on min and max values as compared with > other primitive data type compression. Therefore now based on min and max > value decimal data falling in Long range will be further compressed as byte, > short or int. > Advantage: This will reduce the storage space thereby decreasing the IO time > while reading and decompressing the data. -- This message was sent by Atlassian JIRA (v6.4.14#64029)