Skip to content

Commit 56ac4dc

Browse files
PinkCrow007alamb
andauthored
Initial Builder API for Creating Variant Values (#7653)
# Which issue does this PR close? - Closes #7424 - Part of #6736 # Rationale for this change This PR introduces a basic builder API for creating Variant values, building on the foundation laid by @mkarbo. The builder provides a user-friendly nested API while maintaining performance through a single-buffer design. The design was shaped with huge help from @alamb, @scovich and @Weijun-H ’s feedback, and draws much inspiration from the excellent work by @zeroshade This is an initial version and does not yet support nested values, metadata key sorting, and so on # What changes are included in this PR? - Adds VariantBuilder, ObjectBuilder, ArrayBuilder # Are there any user-facing changes? The new API's added in parquet-variant will be user facing. --------- Co-authored-by: Andrew Lamb <[email protected]>
1 parent ed25bba commit 56ac4dc

File tree

5 files changed

+792
-4
lines changed

5 files changed

+792
-4
lines changed

parquet-variant/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ authors = { workspace = true }
2828
keywords = ["arrow", "parquet", "variant"]
2929
readme = "README.md"
3030
edition = { workspace = true }
31-
rust-version = { workspace = true }
31+
# needs a newer version than workspace due to
32+
# rror: `Option::<T>::unwrap` is not yet stable as a const fn
33+
rust-version = "1.83"
3234

3335
[dependencies]
3436
arrow-schema = "55.1.0"

0 commit comments

Comments
 (0)