New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration of export CSV is inconsistent with the docs #652
Comments
@szarnyasg Would you mind fixing both (support |
@jexp I'm looking into it this morning. It seems there are multiple issues: the
|
I looked into it. The delimiter issue was trivial to fix. However, without the quotes, the opencsv 2.3 library does not work correctly when quotes are turned off: the separator character is not escaped. The opencsv 2.3 library was released in 2011, so I was suspicious that this issue has been fixed since then. To demonstrate this, I created an example project that has both opencsv 2.3 ( The results show the difference.
@jexp do you think it would be possible to update the opencsv dependency in APOC? |
By the way, I checked the dependency tree: https://gist.github.com/szarnyasg/79f4e612169dccd86232ffd793107375 opencsv is a transitive dependency of |
See PR #879 |
Eventually, PR neo4j/neo4j#12009 was closed as wontfix, so this issue will require another round of thinking. |
@mneedham we need to expose the config options of export csv in the docs (see above). |
Using this single node as the sample dataset:
Exporting to CSV does not work as specified in the docs (Table 8 in Export/Import):
This should give a CSV with semicolons and without quotes. Instead, it gives:
After diving into the code a bit, I realized that I should look around the
ExportConfig
class:neo4j-apoc-procedures/src/main/java/apoc/export/util/ExportConfig.java
Lines 59 to 70 in 37034ba
This suggests that the delimiter is defined by
d
and indeed it is:This results is:
Quotes are supposed to be defined by the
quotes
boolean library, but I could not turn them off withquotes: false
.The text was updated successfully, but these errors were encountered: