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 30775200D33 for ; Wed, 8 Nov 2017 13:21:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2EEF8160BE0; Wed, 8 Nov 2017 12:21:05 +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 730CA160BDA for ; Wed, 8 Nov 2017 13:21:04 +0100 (CET) Received: (qmail 22806 invoked by uid 500); 8 Nov 2017 12:21:03 -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 22797 invoked by uid 99); 8 Nov 2017 12:21:03 -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; Wed, 08 Nov 2017 12:21:03 +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 B7EF3C4C16 for ; Wed, 8 Nov 2017 12:21:02 +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 V6ge8wqBh6DA for ; Wed, 8 Nov 2017 12:21:01 +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 203C35FBB0 for ; Wed, 8 Nov 2017 12:21:01 +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 5CD81E06C7 for ; Wed, 8 Nov 2017 12:21:00 +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 1478D23F05 for ; Wed, 8 Nov 2017 12:21:00 +0000 (UTC) Date: Wed, 8 Nov 2017 12:21:00 +0000 (UTC) From: "anubhav tarar (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CARBONDATA-1677) Incorrect result displays on presto CLI after applying drop table command MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 08 Nov 2017 12:21:05 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] anubhav tarar reassigned CARBONDATA-1677: ----------------------------------------- Assignee: anubhav tarar > Incorrect result displays on presto CLI after applying drop table command > ------------------------------------------------------------------------- > > Key: CARBONDATA-1677 > URL: https://issues.apache.org/jira/browse/CARBONDATA-1677 > Project: CarbonData > Issue Type: Bug > Components: presto-integration > Affects Versions: 1.3.0 > Environment: spark 2.1 > Reporter: Vandana Yadav > Assignee: anubhav tarar > Priority: Minor > Attachments: 2000_UniqData.csv > > > Incorrect result displays on presto CLI after applying drop table command > Steps to reproduce: > On Beeline: > 1) Create Table: > CREATE TABLE uniqdata (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 ("TABLE_BLOCKSIZE"= "256 MB"); > 2) Load Data > LOAD DATA INPATH 'hdfs://localhost:54310/Data/uniqdata/2000_UniqData.csv' into table uniqdata 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 > select * from uniqdata; > Start presto server: > bin/launcher run > run presto CLI: > ./presto --server localhost:9000 --catalog carbondata --schema newpresto > On Presto CLI: > 1)Execute Queries: > a) show tables; > b) select * from uniqdata; > c)Now on beeline drop the table and execute query: > select * from uniqdata; > Expected Result: it should throw an error as table or view does not exist or not found > Actual Result : > On beeline: > Error: org.apache.spark.sql.AnalysisException: Table or view not found: uniqdata; line 1 pos 14 (state=,code=0) > on Presto: > cust_id | cust_name | active_emui_version | dob | doj | bigint_column1 | bigint_column2 | decimal_column1 | decimal_column2 | double_column1 | double_column2 | integer_column1 > ---------+-----------+---------------------+-----+-----+----------------+----------------+-----------------+-----------------+----------------+----------------+----------------- > (0 rows) > Query 20171108_115415_00002_34smd, FINISHED, 1 node > Splits: 16 total, 16 done (100.00%) > 0:00 [0 rows, 0B] [0 rows/s, 0B/s] -- This message was sent by Atlassian JIRA (v6.4.14#64029)