Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
When we load bad record into the table and bad record action is set to "FAIL", then data load will fail. During load a bad record logger static map is maintained which holds the key for bad record. When data load fails due to bad record exception is thrown and key from bad record logger static map is not cleared because of which when valid data is loaded next time data load fails because the key still exists in the map.
Steps to reproduce
-------------------------------
Execute the below commands in sequence in the same session.
create table bigtab (val string, bal int) STORED BY 'carbondata'
load data inpath 'bigtabbad.csv' into table bigtab options('DELIMITER'=',','QUOTECHAR'='"','BAD_RECORDS_ACTION'='FAIL','FILEHEADER'='val,bal')
load data inpath 'bigtab.csv' into table bigtab options('DELIMITER'=',','QUOTECHAR'='"','BAD_RECORDS_ACTION'='FAIL','FILEHEADER'='val,bal')
Attachments
Attachments
Issue Links
- links to