Why does the INSERT INTO CARBON TABLE command fail and the following error message is displayed?
Data load failed due to bad record
The INSERT INTO CARBON TABLE command fails in the following scenarios:
Solution:
You can use the cast function on corresponding columns when inserting records.
For example:
DESCRIBE newcarbontable;
Result:
col1 int col2 bigint
DESCRIBE sourcetable;
Result:
col1 int col2 int
INSERT INTO newcarbontable select col1, cast(col2 as integer) from sourcetable;