[ 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) |
Free forum by Nabble | Edit this page |