You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Manish Gupta (JIRA)" <ji...@apache.org> on 2017/12/21 08:43:02 UTC

[jira] [Resolved] (CARBONDATA-1439) Wrong Error message shown for Bad records even when BAD_RECORDS_LOGGER_ENABLE is set to true

     [ https://issues.apache.org/jira/browse/CARBONDATA-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manish Gupta resolved CARBONDATA-1439.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.0

> 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
>    Affects Versions: 1.2.0
>            Reporter: Shivangi Gupta
>            Assignee: Shivangi Gupta
>            Priority: Minor
>             Fix For: 1.3.0
>
>         Attachments: test2.csv
>
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> 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)