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: Statefull parser handling #10575

Merged
merged 3 commits into from
Feb 3, 2022
Merged

Conversation

srebhan
Copy link
Member

@srebhan srebhan commented Feb 2, 2022

resolves #10366

Stateful parsers, like CSV, require a reset of the parser state for each new data chunk. In case of the CSV parser a reset is required whenever a chunk of data starts from the beginning with a header, skipped rows etc. To reset the parser we construct a new one for every new file in the file-plugin. More plugins might need to follow.

@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Feb 2, 2022
@srebhan srebhan mentioned this pull request Feb 3, 2022
@jonilala796
Copy link

I tested it in my environment and it seems to fix issue #10366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSV parsing issue
4 participants