anubhav tarar created CARBONDATA-1165:
-----------------------------------------
Summary: Class Cast excpeyion in intermediate file merger when loading data
Key: CARBONDATA-1165
URL:
https://issues.apache.org/jira/browse/CARBONDATA-1165 Project: CarbonData
Issue Type: Bug
Components: data-load
Affects Versions: 1.2.0
Environment: spark2.1
Reporter: anubhav tarar
Assignee: anubhav tarar
Priority: Trivial
query:
spark.sql("CREATE TABLE ORDERS ( O_ORDERKEY INT ,\n O_CUSTKEY INT ,\n O_ORDERSTATUS STRING ," +
"\n O_TOTALPRICE DECIMAL(15,2) ,\n O_ORDERDATE TIMESTAMP ,\n O_ORDERPRIORITY STRING" +
" , \n O_CLERK STRING , \n O_SHIPPRIORITY INT ,\n O_COMMENT STRING ) STORED BY " +
"'carbondata'")
spark.sql("LOAD DATA INPATH \"hdfs://localhost:54310/user1/orders.csv\" INTO TABLE orders " +
"OPTIONS('DELIMITER'='|' , 'QUOTECHAR'='\"','FILEHEADER'='O_ORDERKEY,O_CUSTKEY," +
"O_ORDERSTATUS,O_TOTALPRICE,O_ORDERDATE,O_ORDERPRIORITY,O_CLERK,O_SHIPPRIORITY," +
"O_COMMENT')")
logs:
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
at org.apache.carbondata.processing.sortandgroupby.sortdata.IntermediateFileMerger.writeDataTofile(IntermediateFileMerger.java:347)
at org.apache.carbondata.processing.sortandgroupby.sortdata.IntermediateFileMerger.call(IntermediateFileMerger.java:112)
at org.apache.carbondata.processing.sortandgroupby.sortdata.IntermediateFileMerger.call(IntermediateFileMerger.java:37)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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:745)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)