Login  Register

ClassCastException while saving table with decimal fields

Posted by Michael Shtelma on Oct 18, 2017; 7:43pm
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/ClassCastException-while-saving-table-with-decimal-fields-tp24249.html

Hi all,

I have tried to save some table with decimal fields to CarbonData.

I have got the following exception:

java.lang.ClassCastException: java.math.BigDecimal cannot be cast to [B

at org.apache.carbondata.processing.sortandgroupby.sortdata.IntermediateFileMerger.writeDataTofile(IntermediateFileMerger.java:355)

at org.apache.carbondata.processing.sortandgroupby.sortdata.IntermediateFileMerger.run(IntermediateFileMerger.java:112)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:748)


Are decimals supported at the moment ?
I am using CarbonData 1.2 with Spark 2.1.


Best,
Michael