Closed quan-xue closed 2 months ago
I'm not sure if it is due to the recently merged in fix here which changes the handling of escape character - https://github.com/neo4j/apoc/pull/572
Hi! Thanks for reporting, this does seem strange 🤔 Will take a look and get back to you :)
Fixed here, the fix will be released in the next major release which should be 5.22 :)
@gem-neo4j awesome, thanks so much for the quick fix! Might you know when 5.22 will be released?
We release roughly on a monthly cadence, and the 5.21 cutoff was last week, so 5.22 will be released in a little over a month I would guess :)
Guidelines
Please note that GitHub issues are only meant for bug reports/feature requests. If you have questions on how to use APOC, please ask on the Neo4j Discussion Forum instead of creating an issue here.
Expected Behavior (Mandatory)
When running
apoc.import.csv
, there should be consistent escaping behaviour. E.g.\
is used to escape special characters for both nodes and relationship files.Actual Behavior (Mandatory)
For nodes, there is no escaping in character by placing
\
in front of the character. Whereas for relationships, when defining the node to attach the relationship to, escaping after\
is applied.How to Reproduce the Problem
Simple Dataset (where it's possible)
Node file
Relationship file (note the same blah_code as above)
Steps (Mandatory)
CALL apoc.import.csv([{fileName: 'file:test.csv', labels:['blah']}],[],{ignoreDuplicateNodes: true});
You will see that the node is created with id806^04^150\\^123456
CALL apoc.import.csv([{fileName: 'file:test.csv', labels:['blah']}],[{fileName: 'file:test_relationships.csv', type: 'friends_with'}],{ignoreDuplicateNodes: true});
Error is returnedFailed to invoke procedure
apoc.import.csv: Caused by: java.lang.IllegalStateException: Node for id space blah_code and id 806^04^150\^123456 not found
\\
, the error is resolved, suggesting escaping is performed when performing the relationship creation.Screenshots (where it's possible)
Specifications (Mandatory)
Currently used versions
Versions
neo4j:5.19.0-enterprise