Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7B9BD200D01 for ; Fri, 8 Sep 2017 02:20:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7A8F01609E0; Fri, 8 Sep 2017 00:20:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C12D91609BE for ; Fri, 8 Sep 2017 02:20:08 +0200 (CEST) Received: (qmail 58804 invoked by uid 500); 8 Sep 2017 00:20:08 -0000 Mailing-List: contact issues-help@carbondata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.apache.org Delivered-To: mailing list issues@carbondata.apache.org Received: (qmail 58795 invoked by uid 99); 8 Sep 2017 00:20:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Sep 2017 00:20:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6EC8FD87F9 for ; Fri, 8 Sep 2017 00:20:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 2Qe-VFgCruBj for ; Fri, 8 Sep 2017 00:20:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 98C5D60DC6 for ; Fri, 8 Sep 2017 00:20:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E9540E0E6E for ; Fri, 8 Sep 2017 00:20:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 55A4624153 for ; Fri, 8 Sep 2017 00:20:00 +0000 (UTC) Date: Fri, 8 Sep 2017 00:20:00 +0000 (UTC) From: "Liang Chen (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CARBONDATA-1425) Inappropriate Exception displays while creating a new partition with incorrect partition type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 08 Sep 2017 00:20:09 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-1425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16157910#comment-16157910 ] Liang Chen commented on CARBONDATA-1425: ---------------------------------------- [~Vandana7] please verify pull request 1336 . > 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 > Attachments: 2000_UniqData.csv > > Time Spent: 50m > 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)