Shivangi Gupta created CARBONDATA-1439:
------------------------------------------
Summary: Wrong Error message shown for Bad records even when BAD_RECORDS_LOGGER_ENABLE is set to true
Key: CARBONDATA-1439
URL:
https://issues.apache.org/jira/browse/CARBONDATA-1439 Project: CarbonData
Issue Type: Improvement
Reporter: Shivangi Gupta
Assignee: Shivangi Gupta
Priority: Minor
Attachments: test2.csv
Steps to reproduce:
1. Create table :
CREATE TABLE badrecordtest1 (ID int,CUST_ID int,cust_name string) STORED BY 'org.apache.carbondata.format';
2.Load data into the table:
LOAD DATA INPATH 'hdfs://localhost:54310/Files/test2.csv' into table badrecordtest1 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FAIL','is_empty_data_bad_record'='true','BAD_RECORDS_LOGGER_ENABLE'='TRUE','FILEHEADER'='ID,CUST_ID,cust_name');
RESULT:
Error: java.lang.Exception: Data load failed due to bad record: The value with column name id and column data type INT is not a valid INT type.Please enable bad record logger to know the detail reason.
As BAD_RECORDS_LOGGER_ENABLE is set to true, so the displayed error message should not contain the message: "Please enable bad record logger to know the detail reason."
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)