Repository navigation
Share Variant path parsing and support rooted getter paths - #143
Conversation
I'd unify them to the Spark root
This is great
I think a shared path helper with a parameter to reject $ could do. Spark does smth like that
I wonder if we should reverse to the older behavior for the release target parity. |
|
I'll track unifying the path syntax with Spark in #166 and handle it separately, taking backward compatibility for existing rootless paths into account. This PR will keep those paths supported while sharing the parser and adding Spark-rooted getter paths. |
|
I've added a parameter to the shared path helper to control whether |
|
Perhaps we can add a documentation page eventually, similar to shredding.md, that documents the supported path syntax |
* Enable quoted `]` path tests and simplify Variant path parsing Arrow 60.1 handles a closing bracket inside quotes, so the skipped quoted-`]` cases now run. Trim the path tests that #143 left redundant and simplify the rooted path parser now that quoted keys keep backslashes. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Split bracket path segments with `str::split_once` Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Scope the page to Spark 4.2.0, drop rows made stale by datafusion-contrib#143, datafusion-contrib#153, datafusion-contrib#187 and datafusion-contrib#192, link tests with absolute URLs, and add the page to the docs site and the README note. Enable field-extraction case 04 (fixed by apache/arrow-rs#11302) and the empty-key schema_of_variant case (apache/arrow-rs#10352), which pass on Arrow 60.1.0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Document Spark compatibility differences and their causes * Rewrite Spark compatibility page for Spark 4.2 and enable fixed cases Scope the page to Spark 4.2.0, drop rows made stale by #143, #153, #187 and #192, link tests with absolute URLs, and add the page to the docs site and the README note. Enable field-extraction case 04 (fixed by apache/arrow-rs#11302) and the empty-key schema_of_variant case (apache/arrow-rs#10352), which pass on Arrow 60.1.0. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Drop the function list and ask readers to report differences Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Share Variant string-path parsing and add Spark-style
$paths to getters andvariant_object_keys. Existing rootless paths remain supported; unifying the syntax is deferred to #166 for backward-compatibility review.Rooted quoted keys preserve backslashes as in Spark 4.2, including for
variant_delete. The shared helper takesallow_root; deletion still requires a rooted path and rejects$alone. Dollar-prefixed field names require bracket quoting, e.g.$["$name"].Closes #142. Related to #71 and #141.
Validation:
cargo test, generated docs and example checks, Clippy, formatting, and license-header checks passed locally.