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: do not escape CSV output #24311

Merged
merged 1 commit into from
Jun 29, 2023
Merged

fix: do not escape CSV output #24311

merged 1 commit into from
Jun 29, 2023

Conversation

davidby-influx
Copy link
Contributor

CSV output is incorrectly escaped.
Add a boolean flag to tag output
functions to prevent this.

closes #24309

CSV output is incorrectly escaped.
Add a boolean flag to tag output
functions to prevent this.

closes #24309
Copy link

@btasker btasker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Tests against Plutonium will probably fail after merge though, there's a (single) invocation of tags.HashKey in plutonium's storage/merge/stream_reader_test.go which'll need updating to pass true.

@davidby-influx
Copy link
Contributor Author

@btasker - Thanks, will create plutonium issues for master and 1.11 branches to

  • update to this influxdb version
  • add the argument to HashKey

Copy link
Member

@gwossum gwossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a definite improvement and addresses the original issue. One thing to note is that if a tag can contain a comma, double quote, or CR/LF then that field will require quoting. I'm not sure if it's even possible to get tags with those characters in it. I don't think we should attempt to address CSV quoting until we actually find an issue.

@davidby-influx davidby-influx merged commit 2dc3dcb into master-1.x Jun 29, 2023
davidby-influx added a commit that referenced this pull request Jun 29, 2023
CSV output is incorrectly escaped.
Add a boolean flag to tag output
functions to prevent this.

closes #24309

(cherry picked from commit 2dc3dcb)

closes #24310
davidby-influx added a commit that referenced this pull request Jun 29, 2023
CSV output is incorrectly escaped.
Add a boolean flag to tag output
functions to prevent this.

closes #24309

(cherry picked from commit 2dc3dcb)

closes #24310
@jacobmarble jacobmarble deleted the DSB_no_csv_escape branch January 2, 2024 22:12
chengshiwen pushed a commit to chengshiwen/influxdb that referenced this pull request Aug 26, 2024
CSV output is incorrectly escaped.
Add a boolean flag to tag output
functions to prevent this.

closes influxdata#24309
chengshiwen pushed a commit to chengshiwen/influxdb that referenced this pull request Aug 27, 2024
CSV output is incorrectly escaped.
Add a boolean flag to tag output
functions to prevent this.

closes influxdata#24309
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants