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

parse_key_value parses first field when accept_standalone_key=false #1088

Open
pikeas opened this issue Oct 23, 2024 · 1 comment
Open

parse_key_value parses first field when accept_standalone_key=false #1088

pikeas opened this issue Oct 23, 2024 · 1 comment
Labels
type: bug A code related bug vrl: stdlib Changes to the standard library

Comments

@pikeas
Copy link

pikeas commented Oct 23, 2024

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

parse_key_value("aaa=bbb ccc", accept_standalone_key: false)

could not parse whole line successfully

parse_key_value("aaa bbb=ccc", accept_standalone_key: false)

{"aaa bbb": "ccc"}

parse_key_value("aaa= bbb=ccc", accept_standalone_key: false)

{"aaa": "bbb=ccc"}

Context: unexpected output when using parse_logfmt(), which is a thin wrapper around parse_key_value().

@pikeas pikeas added the type: bug A code related bug label Oct 23, 2024
@jszwedko
Copy link
Member

Hi @pikeas !

For each of the second two examples, could you provide the output you expected?

@jszwedko jszwedko transferred this issue from vectordotdev/vector Oct 23, 2024
@jszwedko jszwedko added the vrl: stdlib Changes to the standard library label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A code related bug vrl: stdlib Changes to the standard library
Projects
None yet
Development

No branches or pull requests

2 participants