You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Neha Bhardwaj (JIRA)" <ji...@apache.org> on 2017/09/05 04:49:00 UTC
[jira] [Updated] (CARBONDATA-1426) Split Partition Raises Exception
when the sequence of NewList Elements differ from OldList Elements
[ 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)