I am trying to import a CSV file into a Redshift database from a CSV file stored on S3. The CSV file is fully quoted (so even a fully integer column is quoted using ").
The table also contains doubles that are also quoted and use the Dutch way of separating the whole numbers and the decimal (1,5 is one and a half).
So basically, my file looks like this:
"int_key", "double_value"
"1", "2,50"
"2", "3,50"
If I import it 'plainly', I get the error:
Invalid digit, Value '"', Pos 0, Type: Integer
Then, I added removequotes
to my query to get my integer integer processed properly. However, now my double column does not understand the comma:
Invalid digit, Value ',', Pos 1, Type: Double
Is there any way to tell Redshift to use comma's to make doubles?
The file is too large to just regex through and replace the comma's with periods.