0

I assume that copying from RedShift -> S3 can only be done with RedshiftcCopyActivity. However I can't seem to find a way to copy only specific columns to S3 (only copy all columns).

The reason I am doing this because one of the columns in the redshift contains carriage return character that messing up with PigActivity defined later on. So I figure since I don't need that column I will just copy only the columns to make my PigActivity runs smoothly.

Aditya Wirayudha
  • 1,024
  • 12
  • 19

2 Answers2

0

I believe RedshiftCopyActivity is used for the utilizing COPY command which is S3->Redshift. The opposite command is UNLOAD.

Your request can be done with SQLActivity where you can write complete UNLOAD command using SELECT statement to define columns for unload.

vtuhtan
  • 1,056
  • 7
  • 18
0

you can use transformSql option in RedshiftCopyActivity to copy selective columns. ref: http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-object-redshiftcopyactivity.html

vishnu
  • 26
  • 2