When trying to import csv's with exported MySQL data from S3 to Redshift with the COPY
command, I'm running in to the String length exceeds DDL length
error.
The table is setup with the same VARCHAR length as the mysql database, but on strings that are close to the max length, it fails because special characters are converted to double dots, increasing the length.
For example, in the error log it shows it trying to enter Rechtsanw..lte, when in the csv it's Rechtsanwälte.
For shorter strings with special characters it works, and they will show up with the special characters once inserted into the table.
I've tried running the command with TRUNCATECOLUMNS
, which will allow the operation to complete, but with strings truncated, leaving them shorter than the max length after double dots are converted back into special characters.
Any ideas on why this is happening, and what I can do to solve it?