I am trying to copy a bunch of csv files from S3 to Redshift using the RedShiftCopyActivity and a datapipeline.
This works fine as long as the csv structure matches the table structure. In my case the csv has less columns than the table and then the RedShiftCopyActivity failes with a "Delimiter not found" error in stl_load_errors.
I would like to use the redshift copy command "columns" option. That way I can make it work, but the columns part of the redshift copy command does not seem to be available in the RedShiftCopyActivity.
Anyone any suggestions?
All tips warmly welcomed.
Many thanks upfront.
Peter
transformSql
option for the RedshiftCopyActivity states the following: "The SQL SELECT expression used to transform the input data." Further, it says that data is loaded into a table namedstaging
, which your transformingSELECT
statements should be run against, and that theoutput schema of transformSql must match the final target table's schema.
Perhaps this is the option you were looking for? – Spout