COPY ignoring extra columns

0

I recently noticed that Redshift COPY command is ignoring any extra columns at the end of the source file which are missing in the table being loaded. I remember copy command used to fail with Extra columns found error earlier. Is this a new behavior recently released?

已提问 2 年前2795 查看次数
1 回答
0

Hello,

As per https://docs.aws.amazon.com/redshift/latest/dg/r_COPY.html , there has been no change to COPY command recently.

If you use COPY command with "maxerror" parameter then it will ignore the records with additional columns.

https://docs.aws.amazon.com/redshift/latest/dg/copy-parameters-data-load.html#copy-maxerror

Thank You !

AWS
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则