I have a CSV table in S3 with 100's of attributes/features, I don't want to create table in RedShift with all these attributes before importing data. Is there anyway to select only the columns I need while copying data from S3 into Redshift?
Asked
Active
Viewed 8,513 times
1
-
Possible duplicate of [in redshift postgresql can I skip columns with the copy function](http://stackoverflow.com/questions/17055708/in-redshift-postgresql-can-i-skip-columns-with-the-copy-function) – Bruno Reis Jun 08 '16 at 20:19
2 Answers
0
You cannot achieve the above using just a copy command it is doable using a python script. Please go through this

Community
- 1
- 1

Piyush Patil
- 14,512
- 6
- 35
- 54
0
There are couple of options listed in aws forum for this problem, take a look at https://forums.aws.amazon.com/message.jspa?messageID=432590 if they may work for you.

Sailendra Pinupolu
- 1,038
- 1
- 10
- 8