GitHub user manishgupta88 opened a pull request:
https://github.com/apache/carbondata/pull/1378 [CARBONDATA-1509] Fixed bug for maintaining compatibility of decimal type with older releases of Carbondata
In old Carbondata releases, precision and scale is not stored for decimal data type and both values are initialized to -1. In TableSpec.ColumnSpec default values for precision and scale are initialized to 0 because of which exception is thrown while reading the old store with decimal column. Both precision and scale should be initialized to -1.
You can merge this pull request into a Git repository by running:
$ git pull
https://github.com/manishgupta88/carbondata decimal_backward_compatibility
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/1378.patchTo close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1378
----
commit bd7c4787ae8e0e0baad6218c9c6e5c58cd99db91
Author: manishgupta88 <
[hidden email]>
Date: 2017-09-22T06:52:39Z
In old Carbondata releases, precision and scale is not stored for decimal data type and both values are initialized to -1. In TableSpec.ColumnSpec default values for precision and scale are initialized to 0 because of which exception is thrown while reading the old store with decimal column. Both precision and scale should be initialized to -1.
----
---