carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vandana Yadav (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CARBONDATA-2004) Incorrect result displays while loading data into a partitioned table.
Date Mon, 08 Jan 2018 10:40:00 GMT
Vandana Yadav created CARBONDATA-2004:
-----------------------------------------

             Summary: Incorrect result displays while loading data into a partitioned table.
                 Key: CARBONDATA-2004
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2004
             Project: CarbonData
          Issue Type: Bug
          Components: data-load
    Affects Versions: 1.3.0
         Environment: spark 2.1
            Reporter: Vandana Yadav
         Attachments: 2000_UniqData.csv, timestamp.png

Incorrect result displays while loading data into a partitioned table.

Steps to reproduce:

1)create a partitioned table:
CREATE TABLE uniqdata_timestamp (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string,
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) partitioned by(dob timestamp) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES
("TABLE_BLOCKSIZE"= "256 MB")

2) Load data into table:
LOAD DATA INPATH 'hdfs://localhost:54310/Data/uniqdata/2000_UniqData.csv' into table uniqdata_timestamp
partition(dob='1') OPTIONS ('FILEHEADER'='CUST_ID,CUST_NAME ,ACTIVE_EMUI_VERSION,DOB,DOJ,
BIGINT_COLUMN1, BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1, Double_COLUMN2,INTEGER_COLUMN1','BAD_RECORDS_ACTION'='FORCE');

3) Expected result: It should throw an error as invalid partition value.

4) Actual Result: it displays notification of successful load, but there is no data into the
table

5) execute query: select count(*) from uniqdata_timestamp;

output:
+-----------+--+
| count(1)  |
+-----------+--+
| 0         |
+-----------+--+





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message