Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-1677

Incorrect result displays on presto CLI after applying drop table command

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.0
    • None
    • presto-integration
    • None
    • spark 2.1

    Description

      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]

      Attachments

        1. 2000_UniqData.csv
          367 kB
          Vandana Yadav

        Issue Links

          Activity

            People

              anubhavtarar anubhav tarar
              Vandana7 Vandana Yadav
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 40m
                  3h 40m