[ 
https://issues.apache.org/jira/browse/CARBONDATA-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Neha Bhardwaj updated CARBONDATA-1426:
--------------------------------------
    Affects Version/s: 1.2.0

> Split Partition Raises Exception when the sequence of NewList Elements differ 
> from OldList Elements
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CARBONDATA-1426
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1426
>             Project: CarbonData
>          Issue Type: Bug
>          Components: data-query
>    Affects Versions: 1.2.0
>         Environment: spark 2.1
>            Reporter: Neha Bhardwaj
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> 1. Create Table :
> DROP TABLE IF EXISTS list_partition_table;
> 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(Elements Out Of Order) :
>  ALTER TABLE list_partition_table SPLIT PARTITION(2) INTO('Europe', '(China, 
> NoPartition)' );
> Output : Error: java.lang.RuntimeException: The elements in new list must 
> exist in original list (state=,code=0)
> 3. Split Partition(Elements In Order) :
> ALTER TABLE list_partition_table SPLIT PARTITION(2) INTO('China', '(Europe, 
> NoPartition)' );
> //Works Fine .



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

Reply via email to