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?

demandé il y a 2 ans2884 vues
1 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions