You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Vandana Yadav (JIRA)" <ji...@apache.org> on 2017/11/01 06:18:00 UTC

[jira] [Closed] (CARBONDATA-1413) Incorrect result displays after creating a partition table with incorrect range_info

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

Vandana Yadav closed CARBONDATA-1413.
-------------------------------------

resolved

> Incorrect result displays after creating a partition table with incorrect range_info
> ------------------------------------------------------------------------------------
>
>                 Key: CARBONDATA-1413
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1413
>             Project: CarbonData
>          Issue Type: Bug
>          Components: data-query, sql
>    Affects Versions: 1.2.0
>         Environment: spark 2.1
>            Reporter: Vandana Yadav
>            Assignee: Raghunandan S
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: 2000_UniqData.csv, partition4.png
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Incorrect result displays after creating a partition table with incorrect range_info
> Description: While creating a partitioned table with string data type column if we provide wrong credentials it should not create partition but in this scenario when I am providing range info as any integer data type instead of string data type, it is creating a partitioned table which is not a correct result, it should display an error saying invalid credentials.
> Steps to Reproduce
> 1)Create a Partitioned table with incorrect credentials
> CREATE TABLE uniqdata_part2_incorrect1 (CUST_ID int,CUST_NAME 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 (ACTIVE_EMUI_VERSION string) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES ('PARTITION_TYPE'='RANGE','RANGE_INFO'='1',"TABLE_BLOCKSIZE"= "256 MB");
> 2) Load data into the partitioned table
> LOAD DATA INPATH 'hdfs://localhost:54310/uniqdata/2000_UniqData.csv' into table uniqdata_part2_incorrect1 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:
> show partitions uniqdata_part2_incorrect1;
> 4)Result On beeline:
> +-----------------------------------+--+
> |             partition             |
> +-----------------------------------+--+
> | 0, active_emui_version = DEFAULT  |
> | 1, active_emui_version < 1        |
> +-----------------------------------+--+
> 5)Expected Result:
> The partitioned table should not be created as there were wrong credentials in the create table query(integer at the place of string)



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