Skip to content

Better YAML parser #75031

@azat

Description

@azat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions