ShreelekhyaG opened a new pull request #3919:
URL: https://github.com/apache/carbondata/pull/3919


    ### Why is this PR needed?
   Load fails with aborted exception when Bad records action is unspecified.
   
   When the partition column is loaded with a bad record value, load fails with 
'Job aborted' message in cluster. However in complete stack trace we can see 
the actual error message. (Like, 'Data load failed due to bad record: The value 
with column name projectjoindate and column data type TIMESTAMP is not a valid 
TIMESTAMP type') 
    
    ### What changes were proposed in this PR?
    Fix bad record error message for the partition column. Added the error 
message to `operationContext` map and if its not null throwing exception with 
`errorMessage` from  `CarbonLoadDataCommand`.
       
    ### Does this PR introduce any user interface change?
    - No
   
    ### Is any new testcase added?
    - No, tested in cluster.
   
       
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to