-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Using apoc.export.csv.graph with bulkImport:true produces wrong result for "id" property #1335
Comments
Hi @p0macs can you try with the following jar? I look forward to your feedback! |
…:true produces wrong result for id property
…:true produces wrong result for id property
…:true produces wrong result for id property
Hi @conker84 ,
When you export without the bulkImport option, then the CSV file is created with the following header: I think the bulk import is designed to work with any ":ID" column which is unique. But please note: alone the fact the the property name is "id" does not mean that this is the unique identifier for the node. |
Sorry @p0macs I lost you comment. neo4j-apoc-procedures/src/test/java/apoc/export/csv/ExportCsvNeo4jAdminTest.java Lines 207 to 212 in d45a9e2
The new header should be:
Before my PR the id prop was always overwritten by the internal id, while now we have it as a separate field. |
Hi @conker84 , |
@p0macs if I provide a build with the fix can you test it? |
Hi @conker84 , yes I could test it. |
fixes #1335: Using apoc.export.csv.graph with bulkImport:true produces wrong result for id property
When the node has a property named "id" and the node will be exported with the bulkImport:true option, then the value of the "id" property will be replaced with the value of the node's internal ID.
The code is probably wrong in the CsvFormat.java file, in the writeNodesBulkImport procedure.
The text was updated successfully, but these errors were encountered: