Summary: insert into select from hive table into carbon table having partition fails with index server running (was: insert into select from hive table into carbon table having partition fails. )
> insert into select from hive table into carbon table having partition fails with index server running
> -----------------------------------------------------------------------------------------------------
>
> Key: CARBONDATA-3589
> URL:
https://issues.apache.org/jira/browse/CARBONDATA-3589> Project: CarbonData
> Issue Type: Bug
> Components: data-query
> Affects Versions: 2.0.0
> Environment: Spark 2.1
> Reporter: Chetan Bhat
> Priority: Minor
> Fix For: 2.0.0
>
>
> Steps :
> CREATE TABLE uniqdata_int_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) Partitioned by (cust_id int, cust_name string) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES ("TABLE_BLOCKSIZE"= "256 MB");
> LOAD DATA INPATH 'hdfs://hacluster/chetan/2000_UniqData.csv' into table uniqdata_int_string partition(cust_id='1', cust_name='CUST_NAME_00002') OPTIONS ('FILEHEADER'='CUST_ID,CUST_NAME ,ACTIVE_EMUI_VERSION,DOB,DOJ, BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1, Double_COLUMN2,INTEGER_COLUMN1','BAD_RECORDS_ACTION'='FORCE');
> 0: jdbc:hive2://10.18.98.225:22550/default> CREATE TABLE uniqdata_hive (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)ROW FORMAT DELIMITED FIELDS TERMINATED BY ',';
> +---------+--+
> | Result |
> +---------+--+
> +---------+--+
> No rows selected (0.6 seconds)
>
> Issue : - insert into select from hive table into carbon table having partition fails.
> 0: jdbc:hive2://10.18.98.225:22550/default> insert into uniqdata_int_string partition(cust_id='1',cust_name='CUST_NAME_00002') select * from uniqdata_hive limit 10;
> *Error: java.util.NoSuchElementException: None.get (state=,code=0)*
> Expected :- insert into select from hive table into carbon table having partition should be success