-
Notifications
You must be signed in to change notification settings - Fork 139
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
[BUG] CSV output doesn't handle entries with quotes but not commas. #3050
Labels
bug
Something isn't working
Comments
Michael-S
added a commit
to Michael-S/opensearch-sql-plugin
that referenced
this issue
Oct 9, 2024
Michael-S
added a commit
to Michael-S/opensearch-sql-plugin
that referenced
this issue
Oct 9, 2024
Fixes opensearch-project#3050 Signed-off-by: Michael Swierczek <[email protected]>
5 tasks
Michael-S
added a commit
to Michael-S/opensearch-sql-plugin
that referenced
this issue
Oct 9, 2024
Fixes opensearch-project#3050 Signed-off-by: Mike Swierczek <[email protected]>
Swiddis
pushed a commit
to Swiddis/sql
that referenced
this issue
Nov 6, 2024
Fixes opensearch-project#3050 Signed-off-by: Mike Swierczek <[email protected]> (cherry picked from commit cfe38d7)
7 tasks
Swiddis
pushed a commit
to Swiddis/sql
that referenced
this issue
Nov 6, 2024
Fixes opensearch-project#3050 Signed-off-by: Mike Swierczek <[email protected]> (cherry picked from commit cfe38d7) Signed-off-by: Simeon Widdis <[email protected]>
ykmr1224
pushed a commit
that referenced
this issue
Nov 14, 2024
* Improve error handling for some more edge cases (#3080) * Add failing tests Signed-off-by: Simeon Widdis <[email protected]> * Fix the first test Signed-off-by: Simeon Widdis <[email protected]> * Revise the tests Signed-off-by: Simeon Widdis <[email protected]> * Fix wildcard tests Signed-off-by: Simeon Widdis <[email protected]> * Add license header Signed-off-by: Simeon Widdis <[email protected]> * Fix rerunning SQL parsing Signed-off-by: Simeon Widdis <[email protected]> --------- Signed-off-by: Simeon Widdis <[email protected]> * Fix: CSV and Raw output, escape quotes (#3063) Fixes #3050 Signed-off-by: Mike Swierczek <[email protected]> (cherry picked from commit cfe38d7) Signed-off-by: Simeon Widdis <[email protected]> * Fix merge conflict Signed-off-by: Simeon Widdis <[email protected]> --------- Signed-off-by: Simeon Widdis <[email protected]> Signed-off-by: Mike Swierczek <[email protected]> Signed-off-by: Simeon Widdis <[email protected]> Co-authored-by: Mike Swierczek <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the bug?
CSV output of entries like
"a" b
ora " b
should, according to RFC 4180, escape them to be"""a"" b"
and"a "" b"
, respectively. See section 2.5, https://www.rfc-editor.org/rfc/rfc4180How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
The CSV output escapes double quotes properly.
What is your host/environment?
Do you have any additional context?
As far as I can tell, the problem appears to be in function
quoteIfRequired
inFlatResponseBase.java
,sql/protocol/src/main/java/org/opensearch/sql/protocol/response/format/FlatResponseBase.java
Line 85 in c1e623d
The text was updated successfully, but these errors were encountered: