CSV Import fails
Answered
Trying to import a 6 column CSV into a Azure SQL database table via the DataGrip import feature.
I'm setting all columns to VARCHAR(MAX) datatype as I have no need for typing in a quick bit of analysis I want to do.
Import creates the table fine then fails with error:
class java.lang.String cannot be cast to class java.lang.Number

I'm not trying to cast any string field as a number so this is confusing.
Anyone encountered this before? Thanks.
Please sign in to leave a comment.
This should be fixed in latest version, please update to 2021.3.4 or try [EAP].
Thanks Yuriy. I am on 2021.3.4
I'll try the EAP release later on.
Hi, it didn't work with 2021.3.4 but I can confirm that for me EAP worked
Hi, I got the same error message when trying to import a similar CSV file.
In my case, the problem was that I was assuming UTF-8 encoding while the file was ISO-8859-1.
Specifying the right encoding solved my problem. The error message was confusing though :)