[ https://issues.apache.org/jira/browse/CARBONDATA-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16029633#comment-16029633 ] anubhav tarar commented on CARBONDATA-1102: ------------------------------------------- [~cenyuhai] i am working on some prs for hive, all of them are failing due to this issue specialy the hive vs orc performance pr i guess earlier short,int were taking as long but now they are taking their respective ranges in master branch, so i think its better to remove this issue earlier so i can easily continue ,can i create a seperate pr for correcting them? > Selecting Int type in hive from carbon table is showing class cast exception > ---------------------------------------------------------------------------- > > Key: CARBONDATA-1102 > URL: https://issues.apache.org/jira/browse/CARBONDATA-1102 > Project: CarbonData > Issue Type: Bug > Components: hive-integration > Affects Versions: 1.2.0 > Environment: hive,spark 2.1 > Reporter: anubhav tarar > Assignee: anubhav tarar > Priority: Trivial > > in carbon > 0: jdbc:hive2://localhost:10000> CREATE TABLE ALLDATATYPETEST(ID INT,NAME STRING,SALARY DECIMAL,MARKS DOUBLE,JOININGDATE DATE,LEAVINGDATE TIMESTAMP) STORED BY 'CARBONDATA' ; > +---------+--+ > | Result | > +---------+--+ > +---------+--+ > No rows selected (3.702 seconds) > 0: jdbc:hive2://localhost:10000> LOAD DATA INPATH 'hdfs://localhost:54310/alldatatypetest.csv' into table alldatatypetest; > +---------+--+ > | Result | > +---------+--+ > +---------+--+ > No rows selected (7.16 seconds) > 0: jdbc:hive2://localhost:10000> SELECT * FROM ALLDATATYPETEST; > +-----+------------+---------+--------+--------------+------------------------+--+ > | ID | NAME | SALARY | MARKS | JOININGDATE | LEAVINGDATE | > +-----+------------+---------+--------+--------------+------------------------+--+ > | 1 | 'ANUBHAV' | 200000 | 100.0 | 2016-04-14 | 2016-04-14 15:00:09.0 | > | 2 | 'LIANG' | 200000 | 100.0 | 2016-04-14 | 2016-04-14 15:00:09.0 | > +-----+------------+---------+--------+--------------+------------------------+--+ > 2 rows selected (1.978 seconds) > in hive > hive> CREATE TABLE ALLDATATYPETEST(ID INT,NAME STRING,SALARY DECIMAL,MARKS DOUBLE,JOININGDATE DATE,LEAVINGDATE TIMESTAMP) ROW FORMAT SERDE 'org.apache.carbondata.hive.CarbonHiveSerDe' STORED AS INPUTFORMAT 'org.apache.carbondata.hive.MapredCarbonInputFormat' OUTPUTFORMAT 'org.apache.carbondata.hive.MapredCarbonOutputFormat' TBLPROPERTIES ('spark.sql.sources.provider'='org.apache.spark.sql.CarbonSource'); > OK > Time taken: 1.934 seconds > hive> ALTER TABLE ALLDATATYPETEST SET LOCATION 'hdfs://localhost:54310/opt/carbonStore/default/alldatatypetest'; > OK > Time taken: 1.192 seconds > hive> SELECT * FROM ALLDATATYPETEST; > OK > Failed with exception java.io.IOException:java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long > Time taken: 0.174 seconds -- This message was sent by Atlassian JIRA (v6.3.15#6346) |
Free forum by Nabble | Edit this page |