Skip to content

feat(variant): add header-only views of encoded variant bytes - #12309

Open
cetra3 wants to merge 3 commits into
apache:mainfrom
pydantic:variant-views-2-views
Open

cetra3 wants to merge 3 commits into
apache:mainfrom
pydantic:variant-views-2-views

Conversation

@cetra3

@cetra3 cetra3 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

This PR is the first open PR of the stack split out of #11511. #12308 has merged, so the diff is this PR's change alone.

Rationale for this change

Every access to a variant value pays for checks that the access does not use. The unvalidated constructors of VariantMetadata, VariantObject and VariantList read the first and last offsets of each header and trim the byte slices. A field lookup then validates the UTF-8 of every dictionary name that its binary search probes.

For most kernel work, a value needs much less: the header of each object or list along a path, the names that the binary search probes, and the bytes of the value that it finds.

This PR adds the types that read that way, and builds the existing types on them. The kernels start to use the views in the next PRs of the stack.

What changes are included in this PR?

  • New types VariantView, VariantMetadataView, VariantObjectView and VariantListView.
    • Building a view reads one header and nothing else.
    • Each accessor reads and bounds-checks only the bytes that it needs, and returns an error on malformed input. It never panics.
    • Field names are compared as bytes, which orders them as str does, so a search does not validate UTF-8.
    • A view converts to the existing types: VariantMetadataView::try_into_metadata, VariantObjectView::try_into_object, VariantListView::try_into_list and VariantView::try_to_variant add the first and last offset checks that unvalidated instances guarantee.
  • VariantMetadata, VariantObject and VariantList are now built by promoting a view, and their accessors (get, field, field_name, iter, get_entry) delegate to it. Their public behavior is unchanged.
  • ObjectBuilder::finish sorts fields with a new MetadataBuilder::cmp_field_names. ReadOnlyMetadataBuilder compares the names as bytes.

The docs of VariantView describe the design.

Are these changes tested?

The existing types now delegate to the views, so their tests also cover the views. The views also have direct tests: agreement with VariantMetadata, VariantObject and VariantList, and every truncation and single-byte corruption of a sample value, which must not panic.

Benchmark runner results, this PR against main: variant_validation on x86_64 and Neoverse V2, and variant_kernels on x86_64.

benchmark x86_64 Neoverse V2
metadata_iter/8 −1% −5%
metadata_iter/32 +5% −7%
metadata_iter/128 +4% −6%
bench_validate_complex_object −1% 0%
bench_validate_large_object 0% −7%
bench_validate_large_nested_list −1% 0%
object_field_name/{8,32,128} −2% −2% to −3%
object_get_by_name/8 −15% +1%
object_get_by_name/32 −17% −4%
object_get_by_name/128 −21% −9%
object_iter/8 −7% −10%
object_iter/32 −9% −8%
object_iter/128 −11% −8%
variant_get_unshredded_object_path_262k_rows +3%
variant_get_list_index_unshredded +2%
variant_get_utf8_from_list +3%
variant_get_utf8_from_map_in_list +3%
variant_get_utf8_from_unshredded_string −6%
variant_get_decimal_short_string_to_decimal256(76,2)_wide_8192_safe +11%
variant_get_decimal_string_to_decimal128(38,3)_long_8192_safe +9%
variant_get_decimal_string_to_decimal128(38,3)_long_8192_strict +6%
unshred_variant_object −5%
unshred_variant_list −6%
unshred_variant_partial_object +3%
unshred_variant_partial_object_unsorted_metadata −19%

Slower inputs:

  • metadata_iter is 4–5% slower on x86_64 at 32 and 128 entries, and 5–7% faster on Neoverse V2. My local x86_64 machine measured it 13–16% slower.
  • Three variant_get benchmarks that cast long strings to decimals are 6–11% slower on x86_64. I have not found the cause. This PR does not change the string decoding or decimal parsing code. On that path it only changes how VariantMetadata is built, which does the same checks as before.
  • The four unshredded variant_get benchmarks that read objects or lists are 2–3% slower on x86_64. The next PR of the stack moves variant_get onto the views.

Are there any user-facing changes?

New public API in parquet-variant:

  • VariantView, VariantMetadataView, VariantObjectView and VariantListView, with their methods.
  • VariantMetadata::view, VariantObject::view and VariantList::view.
  • MetadataBuilder::cmp_field_names, a provided trait method.
  • VariantBasicType, which VariantView::basic_type returns.

No existing public API changes. Some out-of-range errors from metadata and list accessors have new message text.

🤖 Generated with Claude Code

@cetra3

cetra3 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark variant_validation

resources:
arch: amd64

@cetra3

cetra3 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark variant_validation

@cetra3

cetra3 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark variant_kernels

env:
BENCH_FILTER: "^(variant_get|unshred_variant)"

resources:
arch: amd64

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: variant_validation

Sharding factor: 1 (1 workers).

Comparing variant-views-2-views (a849621) to 093ef04 (merge-base) diff

Run configuration
run benchmark variant_validation
resources:
  arch: amd64
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: variant_kernels

Sharding factor: 1 (1 workers).

Comparing variant-views-2-views (a849621) to 093ef04 (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get|unshred_variant)
resources:
  arch: amd64
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: variant_validation

Sharding factor: 1 (1 workers).

Comparing variant-views-2-views (a849621) to 093ef04 (merge-base) diff

Run configuration
run benchmark variant_validation
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: variant_validation

Comparing variant-views-2-views (a849621) to 093ef04 (merge-base) diff

Run configuration
run benchmark variant_validation
resources:
  arch: amd64
shards: 1
Details
group                               base                                    changed
-----                               ----                                    -------
bench_validate_complex_object       1.01    202.1±4.82µs        ? ?/sec     1.00    201.0±4.63µs        ? ?/sec
bench_validate_large_nested_list    1.01     19.4±0.41ms        ? ?/sec     1.00     19.3±0.38ms        ? ?/sec
bench_validate_large_object         1.00     55.5±1.19ms        ? ?/sec     1.00     55.5±1.27ms        ? ?/sec
metadata_iter/128                   1.00  1178.9±23.54ns 103.5 MElem/sec    1.04  1230.7±24.40ns 99.2 MElem/sec
metadata_iter/32                    1.00    293.8±5.15ns 103.9 MElem/sec    1.05    309.3±6.91ns 98.7 MElem/sec
metadata_iter/8                     1.01     80.5±1.47ns 94.7 MElem/sec     1.00     79.7±1.51ns 95.7 MElem/sec
object_field_name/128               1.02  1936.1±32.47ns 63.0 MElem/sec     1.00  1901.0±50.85ns 64.2 MElem/sec
object_field_name/32                1.02    482.5±7.54ns 63.2 MElem/sec     1.00   474.7±11.82ns 64.3 MElem/sec
object_field_name/8                 1.02    121.3±2.30ns 62.9 MElem/sec     1.00    119.4±3.50ns 63.9 MElem/sec
object_get_by_name/128              1.26    148.2±4.82ns        ? ?/sec     1.00    117.6±1.80ns        ? ?/sec
object_get_by_name/32               1.21     91.6±2.16ns        ? ?/sec     1.00     75.7±1.48ns        ? ?/sec
object_get_by_name/8                1.18     71.7±1.49ns        ? ?/sec     1.00     60.6±1.75ns        ? ?/sec
object_iter/128                     1.13      3.7±0.09µs 32.8 MElem/sec     1.00      3.3±0.07µs 37.1 MElem/sec
object_iter/32                      1.10   913.3±15.92ns 33.4 MElem/sec     1.00   827.7±19.04ns 36.9 MElem/sec
object_iter/8                       1.08    229.4±4.57ns 33.3 MElem/sec     1.00    213.0±5.74ns 35.8 MElem/sec

Per-runner information
variant_validation — shard 1/1

Node: gk3-benchmark-cluster-nap-1by8wdmb-66f5cd78-lrns

Instance: c4-highmem-16 (12 vCPU / 65 GiB)

uname:

Linux bench-c7031042903-5521-h5kmc 6.12.105+ #1 SMP Sat Sep 19 07:57:03 UTC 2026 x86_64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_validation
CPU Details (lscpu)
Architecture:                            x86_64
CPU op-mode(s):                          32-bit, 64-bit
Address sizes:                           52 bits physical, 57 bits virtual
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               GenuineIntel
Model name:                              INTEL(R) XEON(R) PLATINUM 8581C CPU @ 2.30GHz
CPU family:                              6
Model:                                   207
Thread(s) per core:                      2
Core(s) per socket:                      8
Socket(s):                               1
Stepping:                                2
BogoMIPS:                                4600.00
Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx_vnni avx512_bf16 wbnoinvd arat avx512vbmi umip avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid cldemote movdiri movdir64b fsrm md_clear serialize tsxldtrk amx_bf16 avx512_fp16 amx_tile amx_int8 arch_capabilities
Hypervisor vendor:                       KVM
Virtualization type:                     full
L1d cache:                               384 KiB (8 instances)
L1i cache:                               256 KiB (8 instances)
L2 cache:                                16 MiB (8 instances)
L3 cache:                                260 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS SW sequence; BHI BHI_DIS_S
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Resource Usage

base (merge-base)

Metric Value
Wall time 150.0s
Peak memory 15.7 MiB
Avg memory 14.1 MiB
CPU user 143.9s
CPU sys 0.0s
Peak spill 0 B

branch

Metric Value
Wall time 145.0s
Peak memory 15.0 MiB
Avg memory 14.1 MiB
CPU user 142.2s
CPU sys 0.0s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: variant_validation

Comparing variant-views-2-views (a849621) to 093ef04 (merge-base) diff

Run configuration
run benchmark variant_validation
shards: 1
Details
group                               base                                    changed
-----                               ----                                    -------
bench_validate_complex_object       1.00    181.8±2.67µs        ? ?/sec     1.00    181.6±2.52µs        ? ?/sec
bench_validate_large_nested_list    1.00     20.0±0.46ms        ? ?/sec     1.00     20.1±0.41ms        ? ?/sec
bench_validate_large_object         1.08     59.5±3.01ms        ? ?/sec     1.00     55.2±2.05ms        ? ?/sec
metadata_iter/128                   1.06   984.1±67.49ns 124.0 MElem/sec    1.00   924.1±15.16ns 132.1 MElem/sec
metadata_iter/32                    1.07   252.4±18.01ns 120.9 MElem/sec    1.00    235.0±3.32ns 129.9 MElem/sec
metadata_iter/8                     1.05     59.9±3.44ns 127.3 MElem/sec    1.00     57.0±0.95ns 133.8 MElem/sec
object_field_name/128               1.03  1151.7±44.41ns 106.0 MElem/sec    1.00   1123.1±4.92ns 108.7 MElem/sec
object_field_name/32                1.02    293.0±9.19ns 104.2 MElem/sec    1.00    286.4±1.34ns 106.6 MElem/sec
object_field_name/8                 1.03     72.3±2.86ns 105.5 MElem/sec    1.00     70.1±0.46ns 108.8 MElem/sec
object_get_by_name/128              1.10    110.1±0.90ns        ? ?/sec     1.00     99.8±0.96ns        ? ?/sec
object_get_by_name/32               1.04     72.8±0.85ns        ? ?/sec     1.00     69.9±0.46ns        ? ?/sec
object_get_by_name/8                1.00     59.7±0.80ns        ? ?/sec     1.00     60.0±0.58ns        ? ?/sec
object_iter/128                     1.08      2.6±0.06µs 47.1 MElem/sec     1.00      2.4±0.02µs 51.1 MElem/sec
object_iter/32                      1.09   654.4±13.76ns 46.6 MElem/sec     1.00    601.7±5.22ns 50.7 MElem/sec
object_iter/8                       1.11    167.2±2.57ns 45.6 MElem/sec     1.00    150.3±1.60ns 50.8 MElem/sec

Per-runner information
variant_validation — shard 1/1

Node: gk3-benchmark-cluster-nap-ts4i8vqe-9ca2b83f-m8zh

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

uname:

Linux bench-c7031043284-5523-g2shq 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_validation
CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Resource Usage

base (merge-base)

Metric Value
Wall time 155.0s
Peak memory 14.7 MiB
Avg memory 13.0 MiB
CPU user 147.9s
CPU sys 0.0s
Peak spill 0 B

branch

Metric Value
Wall time 150.0s
Peak memory 15.2 MiB
Avg memory 13.5 MiB
CPU user 144.2s
CPU sys 0.0s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: variant_kernels

Comparing variant-views-2-views (a849621) to 093ef04 (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get|unshred_variant)
resources:
  arch: amd64
shards: 1
Details
group                                                                            base                                   changed
-----                                                                            ----                                   -------
unshred_variant_list                                                             1.07      6.8±0.13ms        ? ?/sec    1.00      6.4±0.03ms        ? ?/sec
unshred_variant_list_of_objects                                                  1.10     15.2±0.23ms        ? ?/sec    1.00     13.8±0.11ms        ? ?/sec
unshred_variant_nested_fallback                                                  1.03    107.0±1.48ms        ? ?/sec    1.00    104.4±1.69ms        ? ?/sec
unshred_variant_object                                                           1.06      3.9±0.07ms        ? ?/sec    1.00      3.7±0.04ms        ? ?/sec
unshred_variant_partial_object                                                   1.00     32.5±0.46ms        ? ?/sec    1.03     33.4±0.87ms        ? ?/sec
unshred_variant_partial_object_unsorted_metadata                                 1.24    182.2±2.90ms        ? ?/sec    1.00    147.4±2.67ms        ? ?/sec
unshred_variant_primitive                                                        1.05    331.6±5.48µs        ? ?/sec    1.00    315.7±1.66µs        ? ?/sec
variant_get_binary_from_string                                                   1.02    420.4±3.40µs        ? ?/sec    1.00    413.1±7.22µs        ? ?/sec
variant_get_binary_from_unshredded_binary                                        1.03    363.3±6.62µs        ? ?/sec    1.00    352.5±4.82µs        ? ?/sec
variant_get_decimal_double_to_decimal128(20,3)_non_finite_8192_safe              1.03    439.3±6.07µs        ? ?/sec    1.00    428.2±8.10µs        ? ?/sec
variant_get_decimal_double_to_decimal128(20,3)_valid_8192_safe                   1.03    426.5±8.06µs        ? ?/sec    1.00    415.2±5.33µs        ? ?/sec
variant_get_decimal_double_to_decimal128(20,3)_valid_8192_strict                 1.02    519.2±6.73µs        ? ?/sec    1.00    506.8±8.27µs        ? ?/sec
variant_get_decimal_double_to_decimal256(40,-2)_scale_down_8192_safe             1.01   721.2±11.53µs        ? ?/sec    1.00   715.0±11.44µs        ? ?/sec
variant_get_decimal_double_to_decimal64(3,0)_precision_overflow_8192_safe        1.02    461.2±6.23µs        ? ?/sec    1.00    452.1±6.87µs        ? ?/sec
variant_get_decimal_float_to_decimal32(7,2)_valid_8192_safe                      1.07    399.0±6.15µs        ? ?/sec    1.00    374.4±2.81µs        ? ?/sec
variant_get_decimal_float_to_decimal32(7,2)_valid_8192_strict                    1.03    432.6±7.04µs        ? ?/sec    1.00    419.1±5.21µs        ? ?/sec
variant_get_decimal_float_to_decimal64(3,0)_precision_overflow_8192_safe         1.03    477.5±8.26µs        ? ?/sec    1.00    465.6±6.06µs        ? ?/sec
variant_get_decimal_int32_to_decimal32(8,0)_precision_overflow_8192_safe         1.07    415.0±7.00µs        ? ?/sec    1.00    389.0±5.19µs        ? ?/sec
variant_get_decimal_int32_to_decimal32(9,0)_valid_8192_safe                      1.04    393.0±4.57µs        ? ?/sec    1.00    378.0±3.62µs        ? ?/sec
variant_get_decimal_int32_to_decimal32(9,0)_valid_8192_strict                    1.07    417.5±6.54µs        ? ?/sec    1.00    389.8±4.19µs        ? ?/sec
variant_get_decimal_int64_to_decimal128(38,2)_scale_up_8192_safe                 1.07    415.3±5.97µs        ? ?/sec    1.00    388.8±2.97µs        ? ?/sec
variant_get_decimal_int64_to_decimal128(38,2)_scale_up_8192_strict               1.05    461.3±7.63µs        ? ?/sec    1.00    438.6±5.57µs        ? ?/sec
variant_get_decimal_int64_to_decimal256(76,-1)_scale_down_8192_safe              1.04    453.6±6.58µs        ? ?/sec    1.00    436.5±4.87µs        ? ?/sec
variant_get_decimal_int64_to_decimal32(9,-1)_scale_before_narrowing_8192_safe    1.06    406.9±6.31µs        ? ?/sec    1.00    383.8±3.62µs        ? ?/sec
variant_get_decimal_int64_to_decimal32(9,-20)_all_zero_8192_safe                 1.04    387.8±4.91µs        ? ?/sec    1.00    371.8±3.80µs        ? ?/sec
variant_get_decimal_short_string_to_decimal256(40,-2)_scale_down_8192_safe       1.00    528.0±9.92µs        ? ?/sec    1.00   527.0±14.13µs        ? ?/sec
variant_get_decimal_short_string_to_decimal256(76,2)_wide_8192_safe              1.00   942.9±23.47µs        ? ?/sec    1.11  1046.6±17.80µs        ? ?/sec
variant_get_decimal_short_string_to_decimal32(7,2)_valid_8192_safe               1.05    511.0±6.66µs        ? ?/sec    1.00    488.0±6.75µs        ? ?/sec
variant_get_decimal_short_string_to_decimal32(7,2)_valid_8192_strict             1.06    560.1±8.56µs        ? ?/sec    1.00    529.3±7.47µs        ? ?/sec
variant_get_decimal_string_to_decimal128(38,3)_long_8192_safe                    1.00   936.5±15.68µs        ? ?/sec    1.09  1024.2±24.02µs        ? ?/sec
variant_get_decimal_string_to_decimal128(38,3)_long_8192_strict                  1.00  1000.9±17.24µs        ? ?/sec    1.06  1064.9±20.72µs        ? ?/sec
variant_get_list_index_all_oob_int64_64_rows                                     1.12    744.8±8.86ns        ? ?/sec    1.00   667.2±14.88ns        ? ?/sec
variant_get_list_index_shredded                                                  1.00     38.5±0.59µs        ? ?/sec    1.00     38.7±0.77µs        ? ?/sec
variant_get_list_index_unshredded                                                1.00   698.6±12.14µs        ? ?/sec    1.02    713.1±9.90µs        ? ?/sec
variant_get_object_path_metadata/json_to_variant                                 1.01      2.7±0.06ms        ? ?/sec    1.00      2.7±0.10ms        ? ?/sec
variant_get_object_path_metadata/per_row_metadata                                1.00      2.8±0.05ms        ? ?/sec    1.00      2.8±0.02ms        ? ?/sec
variant_get_object_path_metadata/variant_array_builder                           1.02      2.7±0.07ms        ? ?/sec    1.00      2.7±0.29ms        ? ?/sec
variant_get_primitive                                                            1.03    405.0±5.99ns        ? ?/sec    1.00    391.7±2.47ns        ? ?/sec
variant_get_shredded_utf8                                                        1.00    489.5±8.40ns        ? ?/sec    1.00    491.6±7.72ns        ? ?/sec
variant_get_unshredded_object_path_262k_rows                                     1.00     27.7±0.42ms        ? ?/sec    1.03     28.6±0.39ms        ? ?/sec
variant_get_utf8_from_date                                                       1.00    427.6±3.53µs        ? ?/sec    1.01    433.6±7.79µs        ? ?/sec
variant_get_utf8_from_decimal                                                    1.02    378.7±6.84µs        ? ?/sec    1.00    370.3±3.94µs        ? ?/sec
variant_get_utf8_from_float                                                      1.01    357.5±5.27µs        ? ?/sec    1.00    353.4±5.40µs        ? ?/sec
variant_get_utf8_from_int                                                        1.02    359.2±5.18µs        ? ?/sec    1.00    351.4±5.70µs        ? ?/sec
variant_get_utf8_from_list                                                       1.00    438.1±6.13µs        ? ?/sec    1.03    451.7±6.34µs        ? ?/sec
variant_get_utf8_from_map_in_list                                                1.00    434.7±3.87µs        ? ?/sec    1.03    446.9±4.52µs        ? ?/sec
variant_get_utf8_from_time                                                       1.02    620.0±9.84µs        ? ?/sec    1.00    606.1±6.61µs        ? ?/sec
variant_get_utf8_from_timestamp_with_timezone                                    1.01    418.7±6.95µs        ? ?/sec    1.00    414.7±6.29µs        ? ?/sec
variant_get_utf8_from_timestamp_without_timezone                                 1.01    419.2±5.97µs        ? ?/sec    1.00    413.5±5.25µs        ? ?/sec
variant_get_utf8_from_unshredded_string                                          1.07    440.4±6.12µs        ? ?/sec    1.00    413.0±1.76µs        ? ?/sec

Per-runner information
variant_kernels — shard 1/1

Node: gk3-benchmark-cluster-nap-1by8wdmb-4d579947-wjlw

Instance: c4-highmem-16 (12 vCPU / 65 GiB)

uname:

Linux bench-c7031043646-5522-5d7pc 6.12.105+ #1 SMP Sat Sep 19 07:57:03 UTC 2026 x86_64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_kernels
CPU Details (lscpu)
Architecture:                            x86_64
CPU op-mode(s):                          32-bit, 64-bit
Address sizes:                           52 bits physical, 57 bits virtual
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               GenuineIntel
Model name:                              INTEL(R) XEON(R) PLATINUM 8581C CPU @ 2.30GHz
CPU family:                              6
Model:                                   207
Thread(s) per core:                      2
Core(s) per socket:                      8
Socket(s):                               1
Stepping:                                2
BogoMIPS:                                4600.00
Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx_vnni avx512_bf16 wbnoinvd arat avx512vbmi umip avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid cldemote movdiri movdir64b fsrm md_clear serialize tsxldtrk amx_bf16 avx512_fp16 amx_tile amx_int8 arch_capabilities
Hypervisor vendor:                       KVM
Virtualization type:                     full
L1d cache:                               384 KiB (8 instances)
L1i cache:                               256 KiB (8 instances)
L2 cache:                                16 MiB (8 instances)
L3 cache:                                260 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS SW sequence; BHI BHI_DIS_S
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Resource Usage

base (merge-base)

Metric Value
Wall time 550.1s
Peak memory 430.9 MiB
Avg memory 261.6 MiB
CPU user 545.2s
CPU sys 0.3s
Peak spill 0 B

branch

Metric Value
Wall time 530.1s
Peak memory 376.0 MiB
Avg memory 261.1 MiB
CPU user 524.3s
CPU sys 0.2s
Peak spill 0 B

File an issue against this benchmark runner

@alamb

alamb commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Checking this out

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @cetra3 -- this is really nicely structured and I really like the new view API. The performance gains are 👌 very nicw

I had some suggestions to improve the docs but I think those could be done as follow on PRs, though it would be nice to do them here.

Let's wait until @sdf-jkl has a chance to weigh in too, but from my perspective this is a really nice improvement

cc @scovich as well who I remember was discussing something similar to this deferred validation during initial implementation.

Some suggestions for follow ons:

  1. Add a link to the view types in https://github.com/apache/arrow-rs/blob/a849621adca4a121c7197e09d0c3911df6f68766/parquet-variant/src/variant.rs#L191-L190 so it is easier to discover

}
}

/// A variant value of which only the header byte has been read.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for anyone else reviewing this PR, this is a good place to start to understand what is going on

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should [some of] this be hoisted to a mod doc comment since the concepts apply to all four variant building blocks (value, object, list, metadata)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scovich the view module is private and the types are re-exported from the crate root, so module docs would not show up on docs.rs. I kept the overview on VariantView and rewrote it along the lines @alamb suggested below in e913e33. It now names all four views.

let i = try_binary_search_range_by(0..self.len(), cmp)?.ok()?;
let i = self
.view()
.find(name.as_bytes())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the old code discarded the error via ok() but this code panics. I suggest we keep the old behavior (and change it in a follow on PR if needed)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On main, field_name(i) also panics on a malformed object, with the same message (.expect("Invalid variant object field name")). The .ok() in the old code discarded the insertion point that try_binary_search_range_by returned for a missing name, not an error.

This PR keeps both behaviors: a missing name returns None, and a malformed object panics with the same message. It panics in fewer cases than before, because the search no longer validates UTF-8.

Comment thread parquet-variant/src/variant/view.rs Outdated
Comment on lines +146 to +165
/// Building a view parses one header and nothing else. Each accessor reads and bounds-checks only
/// the bytes it needs, so malformed input produces an error, never a panic. A view does not check
/// UTF-8, sort order, or any offset it does not read. Field names are compared as bytes, which
/// orders them exactly as `str` does.
///
/// Use a view to read a few values out of a variant, such as one path per row of a column, without
/// paying for checks that the access does not use.
///
/// # Views and validation
///
/// The views [`VariantView`], [`VariantMetadataView`], [`VariantObjectView`] and
/// [`VariantListView`] are the weakest state of a variant. The [`Variant`], [`VariantMetadata`],
/// [`VariantObject`] and [`VariantList`] types are the stronger states:
///
/// - [`VariantView::to_variant`], [`VariantMetadataView::into_metadata`],
/// [`VariantObjectView::into_object`] and [`VariantListView::into_list`] check the first and
/// last offsets, which bound the encoding. Unvalidated instances of the stronger types guarantee
/// those checks.
/// - The `with_full_validation` methods of the stronger types check everything else.
///

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found this description somewhat redundant and confusing. How about something like this to make it clearer

Suggested change
/// Building a view parses one header and nothing else. Each accessor reads and bounds-checks only
/// the bytes it needs, so malformed input produces an error, never a panic. A view does not check
/// UTF-8, sort order, or any offset it does not read. Field names are compared as bytes, which
/// orders them exactly as `str` does.
///
/// Use a view to read a few values out of a variant, such as one path per row of a column, without
/// paying for checks that the access does not use.
///
/// # Views and validation
///
/// The views [`VariantView`], [`VariantMetadataView`], [`VariantObjectView`] and
/// [`VariantListView`] are the weakest state of a variant. The [`Variant`], [`VariantMetadata`],
/// [`VariantObject`] and [`VariantList`] types are the stronger states:
///
/// - [`VariantView::to_variant`], [`VariantMetadataView::into_metadata`],
/// [`VariantObjectView::into_object`] and [`VariantListView::into_list`] check the first and
/// last offsets, which bound the encoding. Unvalidated instances of the stronger types guarantee
/// those checks.
/// - The `with_full_validation` methods of the stronger types check everything else.
///
/// Views such as [`VariantView`], [`VariantMetadataView`], [`VariantObjectView`]
/// do the minimum parsing work needed, and defer as much value validation as possible to
/// when the field is accessed. This is more efficient when reading a few values out of a variant,
/// such as a path, without validating the entire object.
///
/// For cases that need to validate the entire variant, use
/// [`Variant`], [`VariantMetadata`],
/// [`VariantObject`] and [`VariantList`], which do much more validation during construction and
/// offer `with_full_validation` methods for additional checks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rewritten along these lines in e913e33. I kept three points from the old text: accessors return errors instead of panicking, names are compared as bytes, and which methods convert a view to the validated types.

Comment thread parquet-variant/src/variant/view.rs Outdated
}

/// Checks the last field offset, and returns the bounded [`VariantObject`] that uses
/// `metadata`, the promoted form of this view's metadata dictionary.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to mention the metadata here? It seems unecessary as the function doesn't do anything specific with the metadata 🤔

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly, but every VariantObject has a metadata inside it, that had to come from somewhere.

But I don't know how the "promoted form" part relates, and the error spec is vague at best. Perhaps better to just say something like this?

/// Attempts to interpret this view and `metadata` as a 
/// [validated][`VariantObject::try_new#validation`] `VariantObject`

(matches the wording of the linked VariantObject constructor)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reworded in e913e33 to "Attempts to interpret this view and metadata as an unvalidated VariantObject, which checks the last field offset", with a link to the VariantObject validation docs. I wrote unvalidated rather than validated, because it does not do the full validation of VariantObject::try_new.

Comment thread parquet-variant/src/variant/view.rs Outdated
}

/// Checks the first and last offsets, and returns the bounded [`VariantList`] that uses
/// `metadata`, the promoted form of this view's metadata dictionary.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment here about metadata reference -- I think we should clean up the comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same change for VariantListView::try_into_list in e913e33.

EMPTY_VARIANT_METADATA, EMPTY_VARIANT_METADATA_BYTES, VARIANT_SPEC_VERSION, VariantMetadata,
};
pub use self::object::VariantObject;
pub use self::view::{VariantListView, VariantMetadataView, VariantObjectView, VariantView};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to list VariantView here too:

Screenshot 2026-11-20 at 7 37 11 AM

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added VariantView to the main APIs in the crate docs in e913e33, and a paragraph on views to the validation section of the Variant docs.

Comment thread parquet-variant/src/builder/metadata.rs Outdated
fn field_name(&self, field_id: usize) -> &str {
&self.metadata[field_id]
}
// Byte order is `str` order, so the comparison needs no UTF-8 validation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment seems like it should be attached to the code below

        // Byte order is `str` order, so the comparison needs no UTF-8 validation.
        name(field_a_id).cmp(name(field_b_id))

And then the docstring here should be

   /// Compares the field names of two field ids, which must be less than
    /// [`Self::num_field_names`]. Panics if a field id is out of bounds.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in e913e33.

Comment thread parquet-variant/src/variant/list.rs Outdated
pub(crate) struct VariantListHeader {
num_elements_size: OffsetSizeBytes,
offset_size: OffsetSizeBytes,
pub(crate) num_elements_size: OffsetSizeBytes,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to make the fields pub(crate)? The accessors are pub(crate) which should be enough (or maybe we have to change them to return OffsetSizeBytes or something

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 70ce6cc: the fields are private again, and the views read them through accessors that return OffsetSizeBytes.

Comment thread parquet-variant/src/variant/metadata.rs Outdated
pub(crate) struct VariantMetadataHeader {
version: u8,
is_sorted: bool,
pub(crate) is_sorted: bool,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

likewise here it would be nice to use accessors rather than pub (crate) fields

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 70ce6cc.

Comment thread parquet-variant/src/variant/object.rs Outdated
num_elements_size: OffsetSizeBytes,
field_id_size: OffsetSizeBytes,
field_offset_size: OffsetSizeBytes,
pub(crate) num_elements_size: OffsetSizeBytes,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also here re pub(crate)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 70ce6cc.

@scovich

scovich commented Nov 20, 2026

Copy link
Copy Markdown
Contributor
  • Field names are compared as bytes, which orders them as str does, so a search does not validate UTF-8

Double checking: The spec requires that a variant object’s field IDs must be listed in lexicographic order of their field names, using unsigned byte ordering of the UTF-8 encodings. So this optimization should not break sort ordering. It might allow an invalid utf8 search key to match an invalid utf8 field that was already present, but hopefully the key was already validated?

@scovich scovich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except the binary search helper duplication.

Comment thread parquet-variant/src/variant/view.rs Outdated
}

/// Checks the last field offset, and returns the bounded [`VariantObject`] that uses
/// `metadata`, the promoted form of this view's metadata dictionary.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly, but every VariantObject has a metadata inside it, that had to come from somewhere.

But I don't know how the "promoted form" part relates, and the error spec is vague at best. Perhaps better to just say something like this?

/// Attempts to interpret this view and `metadata` as a 
/// [validated][`VariantObject::try_new#validation`] `VariantObject`

(matches the wording of the linked VariantObject constructor)

}
}

/// A variant value of which only the header byte has been read.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should [some of] this be hoisted to a mod doc comment since the concepts apply to all four variant building blocks (value, object, list, metadata)?

Comment on lines +200 to +205
let header = first_byte_from_slice(value)?;
Ok(Self {
metadata,
value,
header,
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the header byte itself, length validation is deferred until the operation that would actually reference the bytes in question?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Building a VariantView reads only the header byte. Each accessor bounds-checks the bytes it reads when it reads them, and returns an error if they are out of range.

Comment on lines +222 to +227
match self.basic_type() {
VariantBasicType::Object => {
VariantObjectView::try_new(self.metadata, self.value).map(Some)
}
_ => Ok(None),
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compact alternative to consider:

Suggested change
match self.basic_type() {
VariantBasicType::Object => {
VariantObjectView::try_new(self.metadata, self.value).map(Some)
}
_ => Ok(None),
}
(self.basic_type() == VariantBasicType::Object)
.then(|| VariantObjectView::try_new(self.metadata, self.value))
.transpose()

(more below)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather keep the match here, since it reads as a plain dispatch on the basic type. Happy to switch if you feel strongly.

Comment on lines +380 to +383
match i < self.len() {
true => Ok(()),
false => Err(index_error("Variant object field", i, self.len())),
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aside: It will be nice to have bool.ok_or_else once MSRV bumps to 1.98:

(i < self.len()).ok_or_else(|| index_error("Variant object field", i, self.len()))

(some day, not now)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, I'll switch once the MSRV allows it.

Comment thread parquet-variant/src/utils.rs Outdated
/// Binary search over `0..len` with a fallible comparison, which returns the first error it hits.
///
/// Returns the index for which `cmp` returns [`Ordering::Equal`], if any.
pub(crate) fn try_binary_search(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a near copy of try_binary_search_range_by below, differing only in:

  • Explicit start..end vs. implied 0..len
  • Comparator fallibility expressed differently (Result vs. Option)
  • Result/Option vs. Option/Result return value
  • Not-found None vs. Err

What is the significance of these differences? Can we somehow harmonize the two?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAICT, the new function has superior semantics (returns the actual error from a failed comparison) and none of the old function's call sites actually rely on the Some(Err(insertion_point)) it so carefully returns. Recommend delete the old method and take over its name.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 70ce6cc: the old helper is gone, and the new one took its name and its Range parameter. borrowed_field_id uses it too.

@scovich

scovich commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

One follow-up question:

  • A view promotes to the existing types: VariantMetadataView::into_metadata, VariantObjectView::into_object, VariantListView::into_list and VariantView::to_variant add the first and last offset checks that unvalidated instances guarantee.

These are all fallible, is it intentional to omit the customary try_ prefix? Especially when all four of them are thin wrappers around try_* constructors?

cetra3 and others added 2 commits November 24, 2026 13:56
Add `VariantView`, `VariantMetadataView`, `VariantObjectView` and
`VariantListView`. Building a view reads one header. Each accessor reads
and bounds-checks only the bytes it needs, and compares field names as
bytes.

`VariantMetadata`, `VariantObject` and `VariantList` are now built by
promoting a view, and their accessors delegate to it.
`ObjectBuilder::finish` sorts fields with the new
`MetadataBuilder::cmp_field_names`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
`try_binary_search_range_by` now returns the comparison's error and
`None` when nothing matches, and replaces `try_binary_search`. The view
types read the header fields through accessors, so the fields stay
private.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cetra3
cetra3 force-pushed the variant-views-2-views branch from a849621 to 70ce6cc Compare November 24, 2026 03:38
`VariantView::to_variant`, `VariantMetadataView::into_metadata`,
`VariantObjectView::into_object` and `VariantListView::into_list` can
fail, so they become `try_to_variant`, `try_into_metadata`,
`try_into_object` and `try_into_list`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cetra3

cetra3 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@scovich, on your two questions:

It might allow an invalid utf8 search key to match an invalid utf8 field that was already present, but hopefully the key was already validated?

The methods on the existing types take &str, so the key is valid UTF-8, and it can only match an entry with exactly the same bytes, which is then valid UTF-8 too. The view methods take &[u8], so a caller can pass invalid UTF-8. It can then only match an entry with exactly those bytes, which with_full_validation would reject.

These are all fallible, is it intentional to omit the customary try_ prefix?

No, renamed in e913e33 to try_to_variant, try_into_metadata, try_into_object and try_into_list.

@sdf-jkl, @alamb would like your review before this merges, when you have time.

This branch has not been deployed

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

Labels

parquet-variant parquet-variant* crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants