Skip to content

[Variant] Support escaping mechanism for VariantPath parsing #8954

@alamb

Description

@alamb

My immediate question from this is "is there an escape mechanism to allow for "." in a field name?". I checked and the answer's no. That's fine but it might be worth a note.

Originally posted by @mhilton in #8945 (comment)

According to DataBricks the path https://docs.databricks.com/gcp/en/sql/language-manual/functions/variant_get

. path: A STRING literal with a well-formed JSON path expression.

The internet suggests that JSON path escaping looks like they follow the JSON escaping rules

(aka " should be \")

https://ietf-wg-jsonpath.github.io/draft-ietf-jsonpath-base/draft-ietf-jsonpath-base.html#name-name-selector

https://www.rfc-editor.org/rfc/rfc8259#section-7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions