Posted by rahul_kumar on Dec 27, 2016; 2:53pm URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/Float-Data-Type-Support-in-carbondata-Querry-tp5106.html
Hello Ravindra,
I am working on *CARBONDATA-390*(to support Float data type).
I have made following changes *and its working fine with Spark 1.6*.
But when i have tested it for Spark 2.0 .
It works fine if i execute create and load(insert) command .
Select query also works fine and gives the object of DataSet.
Schema of Table and dataset is correct with float datatype.
But when i try dataSet.show() , it gives me following error:
*Exception in thread "main" org.apache.spark.SparkException: Job aborted
due to stage failure: Task 0 in stage 4.0 failed 1 times, most recent
failure: Lost task 0.0 in stage 4.0 (TID 5, localhost):
java.lang.ClassCastException: java.lang.Double cannot be cast to
java.lang.Float*
*My observation is Dataset is strongly typed collection . So when we
selects record from table it gives correct result , but somewhere float has
been converted to Double and during the dataSet.show() gives cast exception
because dataset schema has float datatype.*