Skip to content

[VARIANT] Add support for the json_to_variant API - #7783

Merged
alamb merged 43 commits into
apache:mainfrom
harshmotw-db:harsh-motwani_data/from_json
Jul 3, 2025
Merged

alamb merged 43 commits into
apache:mainfrom
harshmotw-db:harsh-motwani_data/from_json

Conversation

@harshmotw-db

@harshmotw-db harshmotw-db commented Jun 25, 2025 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Explained in the issue.

What changes are included in this PR?

This PR includes a json_to_variant API to parse JSON strings as Variants. json_to_variant takes as argument the input JSON string and an object builder of type VariantBuilder and builds the variant using builder. The resulting variant can be extracted using builder.finish() which consumes the builder and returns the Variant buffers.

Are these changes tested?

Unit Tests, and an example file.

Are there any user-facing changes?

Yes, the PR introduces the json_to_variant API.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Variant: Read/Parse JSON value as Variant

3 participants