I am doing unload and copy from Redshift to S3 -
unload (select * from tbl)
to <S3 location>
credentials <creds>
addquotes escape
copy tbl2
from <S3 location>
credentials <creds>
removequotes escape
My table is like - int, text,text,text .
Copy command is adding random numbers in first int column and shifting further columns to right, removing last column.
Does anyone have any idea why this could happen?
Original table -
col1 col2 col3 col4
1 abc def ghi jkl
2 mno pqr stu vwx
Copy Table -
col1 col2 col3 col4
123 1 abc def ghi
456 2 mno pqr stu
Unloaded table is correct
UNLOADfiles look correct? - John Rotenstein