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 847AE200C6E for ; Mon, 8 May 2017 08:56:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 83332160B99; Mon, 8 May 2017 06:56:10 +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 D0832160BA5 for ; Mon, 8 May 2017 08:56:09 +0200 (CEST) Received: (qmail 19670 invoked by uid 500); 8 May 2017 06:56:09 -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 19660 invoked by uid 99); 8 May 2017 06:56:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 May 2017 06:56:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 80464180BB5 for ; Mon, 8 May 2017 06:56:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Qjmn10Gb2Ysi for ; Mon, 8 May 2017 06:56:07 +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 5B06A5FE03 for ; Mon, 8 May 2017 06:56:06 +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 39975E0D85 for ; Mon, 8 May 2017 06:56:05 +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 3517621DFE for ; Mon, 8 May 2017 06:56:04 +0000 (UTC) Date: Mon, 8 May 2017 06:56:04 +0000 (UTC) From: "Priyal Sachdeva (JIRA)" To: issues@carbondata.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CARBONDATA-1037) Null pointer Exception is coming ,when we do select * from old table after Alter Table Rename Operation. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 08 May 2017 06:56:10 -0000 Priyal Sachdeva created CARBONDATA-1037: ------------------------------------------- Summary: Null pointer Exception is coming ,when we do select * from old table after Alter Table Rename Operation. Key: CARBONDATA-1037 URL: https://issues.apache.org/jira/browse/CARBONDATA-1037 Project: CarbonData Issue Type: Bug Components: data-query Affects Versions: 1.1.0 Environment: 3 node cluster SUSE 11 SP4 Reporter: Priyal Sachdeva Fix For: NONE Attachments: Null_Pointer_exception-Error.JPG, show_tables.JPG create database Priyal; Use Priyal; Create Table CREATE TABLE uniqdata111785 (CUST_ID int,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) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='INTEGER_COLUMN1,CUST_ID'); Load Data into Table LOAD DATA INPATH 'hdfs://hacluster/user/Priyal/2000_UniqData.csv' into table uniqdata111785 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', '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'); LOAD DATA INPATH 'hdfs://hacluster/user/Priyal/2000_UniqData.csv' into table uniqdata111785 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', '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'); Alter Table name alter table Priyal.uniqdata111785 RENAME TO uniqdata1117856; Select query on Old Table select * from Priyal.uniqdata111785 limit 10; 0: jdbc:hive2://172.168.100.199:23040> select * from Priyal.uniqdata111785 limit 10; Error: java.lang.NullPointerException (state=,code=0) Show tables; 0: jdbc:hive2://172.168.100.199:23040> show tables; +-----------+------------------+--------------+--+ | database | tableName | isTemporary | +-----------+------------------+--------------+--+ | priyal | uniqdata1117856 | false | +-----------+------------------+--------------+--+ Expected Output: Table does not exist error message should come. -- This message was sent by Atlassian JIRA (v6.3.15#6346)