Skip to content
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

Fix issue in Neptune Export to CSV where adjacent double quotes are swallowed #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xiazcy
Copy link

@xiazcy xiazcy commented Nov 18, 2022

Removed unescaping of double quotes before escaping them in CSV export, and added tests in CSV Property Graph Printer to ensure proper escape of multiple adjacent double quotes.

Issue #, if available:
n/a

Description of changes:
An issue was found where String properties with adjacent double quotes were swallowed during export to CSV. e.g. a string data "{"hello "World""}", should be escaped as "{""hello ""World""""}", but will be escaped as "{""hello ""World""}" with one set of quotations missing after World.

The cause is this line of code, which removing it fixes the issue.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…nter to ensure proper escape of adjacent double quotes & newlines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant