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

Better YAML parser #75031

Open
azat opened this issue Jan 25, 2025 · 0 comments
Open

Better YAML parser #75031

azat opened this issue Jan 25, 2025 · 0 comments
Labels
feature minor Priority: minor

Comments

@azat
Copy link
Member

azat commented Jan 25, 2025

Right now ClickHouse parser does not recognizes that the following is invalid:

----
# foo
bar: 1

And it does not throw any error and simply does not interpret bar: 1 at all:

yaml-cpp

$ util/parse /tmp/doc-start2.yaml
----

yq

$ yq /tmp/doc-start2.yaml
----
Error: bad file '/tmp/doc-start2.yaml': yaml: line 2: did not find expected <document start>

I did a brief review of existing YAML libraries:

TL;DR; - the issue in yaml-cpp should be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature minor Priority: minor
Projects
None yet
Development

No branches or pull requests

2 participants