[ 
https://issues.apache.org/jira/browse/CARBONDATA-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15820052#comment-15820052
 ] 

QiangCai commented on CARBONDATA-617:
-------------------------------------

I am working for this issue

> Insert query not working with UNION
> -----------------------------------
>
>                 Key: CARBONDATA-617
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-617
>             Project: CarbonData
>          Issue Type: Bug
>          Components: data-query
>    Affects Versions: 1.0.0-incubating
>         Environment: Spark 1.6
> Hadoop 2.6
>            Reporter: Deepti Bhardwaj
>            Assignee: QiangCai
>            Priority: Minor
>         Attachments: 2000_UniqData.csv, 
> thrift-error-log-during-insert-with-union
>
>
> I created 3 table all having same schema
> Create table commands:
> CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION 
> string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 
> bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 
> decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 
> int) STORED BY 'org.apache.carbondata.format';
> CREATE TABLE student (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION 
> string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 
> bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 
> decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 
> int) STORED BY 'org.apache.carbondata.format';
> CREATE TABLE department (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION 
> string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 
> bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 
> decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 
> int) STORED BY 'org.apache.carbondata.format';
> and I loaded the uniqdata and department table with the attached 
> CSV(2000_UniqData.csv)
> and the insert query used to load data in student table was:
> insert into student select 
> CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1
>  from uniqdata UNION select 
> CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1
>  from department;
> When I try to insert data into student with union operation, it gives 
> java.lang.Exception: DataLoad failure.(attached below)
> The Union query works well when used alone but when insert is used with Union 
> it fails.
> Also, if I used hive tables instead of carbon tables insert does not work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to