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

csv: TrimLeadingSpace when TrimSpace is on #6773

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

DSpeichert
Copy link
Contributor

@DSpeichert DSpeichert commented Dec 9, 2019

When TrimSpace is used and Delimeter is a space, it trips up the CSV reader otherwise.

Visual representation of now-supported format:

   first   second   third   fourth
abcdefgh        0       2    false
  abcdef      3.3       4     true
       f        0       2    false

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

@danielnelson
Copy link
Contributor

Thanks, this seems right, can you add a unit test with an example too?

@danielnelson danielnelson added the fix pr to fix corresponding bug label Dec 9, 2019
When TrimSpace is used and Delimeter is a space, the input is not correctly
recognized (empty columns or data mismatch occurrs).
@DSpeichert
Copy link
Contributor Author

@danielnelson done!

@danielnelson danielnelson added this to the 1.13.0 milestone Dec 11, 2019
@danielnelson danielnelson merged commit 98585a1 into influxdata:master Dec 11, 2019
danielnelson pushed a commit that referenced this pull request Dec 11, 2019
@DSpeichert DSpeichert deleted the patch-1 branch December 12, 2019 03:16
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
@Hipska Hipska added the area/csv csv parser/serialiser related label Feb 15, 2022
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/csv csv parser/serialiser related fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants