[jira] [Closed] (CARBONDATA-1425) Inappropriate Exception displays while creating a new partition with incorrect partition type

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Closed] (CARBONDATA-1425) Inappropriate Exception displays while creating a new partition with incorrect partition type

Akash R Nilugal (Jira)

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

Vandana Yadav closed CARBONDATA-1425.
-------------------------------------

The issue is resolved and PR also got merged

> Inappropriate Exception displays while creating a new partition with incorrect partition type
> ---------------------------------------------------------------------------------------------
>
>                 Key: CARBONDATA-1425
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1425
>             Project: CarbonData
>          Issue Type: Improvement
>          Components: data-query
>    Affects Versions: 1.2.0
>         Environment: spark 2.1
>            Reporter: Vandana Yadav
>            Assignee: Jarck
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: 2000_UniqData.csv
>
>          Time Spent: 6h
>  Remaining Estimate: 0h
>
> Inappropriate Exception displays while creating a new partition with incorrect partition type
> Steps to Reproduce:
> 1)Create table:
> CREATE TABLE uniqdata_part1 (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) PARTITIONED BY (CUST_ID int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES ('PARTITION_TYPE'='RANGE','RANGE_INFO'='9090,9500,9800',"TABLE_BLOCKSIZE"= "256 MB")
> 2)Load data:
> LOAD DATA INPATH 'hdfs://localhost:54310/uniqdata/2000_UniqData.csv' into table uniqdata_part1 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1')
> 3) Execute Query:
> ALTER TABLE uniqdata_part1 ADD PARTITION ('abc')
> 4) Result on beeline
> Error: java.lang.RuntimeException: Range info must be in ascending order, please check again! (state=,code=0)
> 5) Expected Result: it should display a proper exception like invalid partition definition as we are providing a string value at the place of the integer value.



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