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

Incorrect output on presto CLI while executing OR operator with multiple load

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: presto-integration
    • Labels:
      None
    • Environment:
      spark 2.1

      Description

      Incorrect output on presto CLI while executing OR operator with multiple load

      Steps to reproduce:
      On beeline:
      1) Create a table:
      CREATE TABLE uniqdata_time (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 with multiple segments in it:
      a) LOAD DATA INPATH 'hdfs://localhost:54310/Data/uniqdata/2000_UniqData.csv' into table uniqdata_time 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')
      b) LOAD DATA INPATH 'hdfs://localhost:54310/Data/uniqdata/3000_UniqData.csv' into table uniqdata_time 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')

      c) LOAD DATA INPATH 'hdfs://localhost:54310/Data/uniqdata/4000_UniqData.csv' into table uniqdata_time 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')

      d) LOAD DATA INPATH 'hdfs://localhost:54310/Data/uniqdata/5000_UniqData.csv' into table uniqdata_time 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')

      e) LOAD DATA INPATH 'hdfs://localhost:54310/Data/uniqdata/6000_UniqData.csv' into table uniqdata_time 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')

      f) LOAD DATA INPATH 'hdfs://localhost:54310/Data/uniqdata/7000_UniqData.csv' into table uniqdata_time 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_time where DOB = cast('2015-10-04 01:00:03' as timestamp) or DOB = cast('2015-10-07 01:00:03' as timestamp)

      Output on beeline:
      ---------------------------------------------------------------------------------------------------------+

      CUST_ID CUST_NAME ACTIVE_EMUI_VERSION DOB DOJ BIGINT_COLUMN1 BIGINT_COLUMN2 DECIMAL_COLUMN1 DECIMAL_COLUMN2 Double_COLUMN1 Double_COLUMN2 INTEGER_COLUMN1

      -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      25712 CUST_NAME_16712 ACTIVE_EMUI_VERSION_16712 2015-10-04 01:00:03.0 2015-10-04 02:00:03.0 123372053566 -223372020142 12345695613.1234000000 22345695613.1234000000 1.12345674897976E10 -1.12345674897976E10 16713
      25715 CUST_NAME_16715 ACTIVE_EMUI_VERSION_16715 2015-10-07 01:00:03.0 2015-10-07 02:00:03.0 123372053569 -223372020139 12345695616.1234000000 22345695616.1234000000 1.12345674897976E10 -1.12345674897976E10 16716

      4) Output On Presto CLI:
      a)Expected Output on Presto: Similar to the output on beeline

      b) Actual output on Presto:

      cust_id | cust_name | active_emui_version | dob | doj | bigint_column1 | bigint_column2 | decimal_column1 | decimal_column2 | double_column1 |
      -------------------------------------------------------------------------------------------------------------------
      (0 rows)
      (END)

        Attachments

        1. 2000_UniqData.csv
          367 kB
          Vandana Yadav
        2. 3000_UniqData.csv
          627 kB
          Vandana Yadav
        3. 4000_UniqData.csv
          836 kB
          Vandana Yadav
        4. 5000_UniqData.csv
          1.02 MB
          Vandana Yadav
        5. 6000_UniqData.csv
          1.23 MB
          Vandana Yadav
        6. 7000_UniqData;delm.csv
          1.44 MB
          Vandana Yadav

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Vandana7 Vandana Yadav
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: