I am copying a .csv file from S3 into Redshift and the Redshift COPY command returns
- stl_load_error 1205
- Invalid Date Format - length must be 10 or more.
My dates are all 10 characters long and in the default 'YYYY-MM-DD' format.
Command:
COPY [table]
FROM [file location]
ACCESS_KEY_ID [___]
SECRET_ACCESS_KEY [____]
FORMAT AS CSV
IGNOREHEADER 1;
The table was created using:
CREATE TABLE finance.commissions_life (
submitted_date date,
campaign varchar(40),
click_id varchar(40),
local_id varchar(40),
num_apps float);
And the .csv is in that exact format as well.
Is anyone else having a similar issue?