You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2025/12/04 15:56:09 UTC
[I] Support escaping mechanism for `VariantPath` parsing [arrow-rs]
alamb opened a new issue, #8954:
URL: https://github.com/apache/arrow-rs/issues/8954
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 https://github.com/apache/arrow-rs/pull/8945#discussion_r2589171904_
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](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Variant] Support escaping mechanism for `VariantPath` parsing [arrow-rs]
Posted by "mhilton (via GitHub)" <gi...@apache.org>.
mhilton commented on issue #8954:
URL: https://github.com/apache/arrow-rs/issues/8954#issuecomment-3615598189
Databricks's JSON path expression is documented [here](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-json-path-expression), and doesn't appear to be the same as rfc8592 JSON path. Although they are similar. Full support of the JSONPath RFC doesn't really make sense in this context so I suggest implementing Databrick's flavour.
Looking through the docs it does have some interesting properties. For [example](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-json-path-expression#extract-using-identifier-and-delimiters) in the `.<field>.` notation (as opposed to the `.["field"].` notation) the field is treated as case-insensitive but only matches if there is a single case-insensitive match.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Variant] Support escaping mechanism for `VariantPath` parsing [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #8954: [Variant] Support escaping mechanism for `VariantPath` parsing
URL: https://github.com/apache/arrow-rs/issues/8954
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org