Better Python error handling message when (header=true) is not passed during COPY FROM
#2737
Labels
usability
Issues related to better usability experience, including bad error messages
Consider a case where we're trying to insert
LivesIn
relations to an edge table:(:Person)-[:LivesIn]->(:City)
The data for the
lives_in.csv
is like this:The following command is correct, and loads in the data when considering the header row.
However, if the user forgets to specify the
(header=true)
clause, it will fail as expected, but the error message is not helpful:The above error message makes it seem like the data is incorrect, rather than something wrong with the way we specified it in the edge insertion query.
A better error message would be:
Stating it this way clearly states what the parser expects, and what it found, making user experience during debugging much better.
The text was updated successfully, but these errors were encountered: