Login  Register

Re: ClassCastException while saving table with decimal fields

Posted by Kunal Kapoor on Oct 19, 2017; 6:25am
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/ClassCastException-while-saving-table-with-decimal-fields-tp24249p24256.html

Hi Michael,

I can confirm that the issue is valid and i have raised a JIRA issue for
the same.
Thanks for reporting the issue. You can find the link to the issue below.

https://issues.apache.org/jira/browse/CARBONDATA-1596

Thanks
Kunal Kapoor

--
Regards

*Kunal Kapoor*
Software Consultant

*Knoldus Software LLP <http://www.knoldus.com/home.knol>*
Twitter <http://twitter/kunal642> | LinkedIn
<https://in.linkedin.com/in/kunal642> | FB
<https://www.facebook.com/kunalkapoor642>
Mobile: +91-9711013430

On Thu, Oct 19, 2017 at 1:13 AM, Michael Shtelma <[hidden email]> wrote:

> 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
>