Relevant column name not printed when a CSV parsing error occurs #4067
Last updated: 2016-10-24 23:35:08 +0200
Date: 2016-09-16 10:28:16 +0200
User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
When you COPY INTO from a CSV file, using mclient, and the parsing of a certain field fails, you get a message saying something like:
"Failed to import table line 1 field 13 'smallint' expected in '1247801'"
This could be improved in more than one way, but the most significant drawback is the lack of a column name. At this point, clearly the server knows/can know which column the value should go into (otherwise it would not know the type); it would be very helpful for the user to print the column name as well as the index (especially since it's not trivial to determine whether the field index is 1-based or 0-based), and columns in MonetDB are not typically identified using indices.
Date: 2016-09-16 11:05:25 +0200
This has nothing to do with the client.
Date: 2016-09-16 11:06:25 +0200
Please don't add my name to the cc list. I get the notifications by other means already.
Date: 2016-09-29 14:54:36 +0200
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=4654b49d2101
Date: 2016-09-29 14:54:51 +0200
we now include the name of the field
Date: 2016-10-13 10:04:14 +0200
Jun2016-SP2 has been released.
Date: 2016-10-24 23:35:08 +0200
Sorry for not making this comment earlier, but - why not print both?
The text was updated successfully, but these errors were encountered: