Neha Bhardwaj created CARBONDATA-1430:
-----------------------------------------

             Summary: Split Partition Raises Exception when The New List 
Elements contains any extra space.
                 Key: CARBONDATA-1430
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1430
             Project: CarbonData
          Issue Type: Bug
         Environment: spark 2.1
            Reporter: Neha Bhardwaj


Split Partition Raises Exception when The New List Elements contains any extra 
space.

1. Create Table :
DROP TABLE IF EXISTS list_partition_table_string;

CREATE TABLE list_partition_table(shortField SHORT, intField INT, bigintField 
LONG, doubleField DOUBLE, timestampField TIMESTAMP, decimalField DECIMAL(18,2), 
dateField DATE, charField CHAR(5), floatField FLOAT, complexData ARRAY<STRING> 
) PARTITIONED BY (stringField STRING) STORED BY 'carbondata' 
TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='Asia, (China, Europe, 
NoPartition)');

2. Split Partition : 
ALTER TABLE list_partition_table SPLIT PARTITION(2) INTO ('China ','( Europe , 
NoPartition )');

Expected Output: The Partition should get split.
Actual Output : Error: java.lang.RuntimeException: The elements in new list 
must exist in original list (state=,code=0)




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to