Skip to content

fix(parquet): Harden Thrift decoding of binary lengths and collection counts - #12142

Merged
etseidl merged 2 commits into
apache:mainfrom
etseidl:parquet-metadata-decoder-hardening
Nov 13, 2026
Merged

etseidl merged 2 commits into
apache:mainfrom
etseidl:parquet-metadata-decoder-hardening

Conversation

@etseidl

@etseidl etseidl commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

There are some bits of the Thrift decoder that can either over-allocate or silently return corrupt data when given malformed input. I'm choosing to address them as a single PR to keep performance issues at a minimum.

What changes are included in this PR?

  • Bound binary lengths to i32::MAX, cap the initial allocation for streamed binary payloads, and reject truncated payloads instead of returning partial data.
  • Validate schema child counts against the remaining schema elements and offset-index page-location counts against the remaining input before reserving capacity.

Are these changes tested?

Yes

Are there any significant user-facing changes?

No

AI disclosure

An AI agent was used in the development and testing of this PR.

@boring-cyborg boring-cyborg Bot added the parquet parquet crate label Nov 9, 2026
@etseidl

etseidl commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark metadata

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: metadata

Sharding factor: 1 (1 workers).

Comparing parquet-metadata-decoder-hardening (963e92f) to 30c5c32 (merge-base) diff

Run configuration
run benchmark metadata
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: metadata

Comparing parquet-metadata-decoder-hardening (963e92f) to 30c5c32 (merge-base) diff

Run configuration
run benchmark metadata
shards: 1
Details
group                                               base                                   changed
-----                                               ----                                   -------
decode metadata (wide) with schema                  1.02     26.8±0.28ms        ? ?/sec    1.00     26.2±0.19ms        ? ?/sec
decode metadata (wide) with skip PES                1.00     26.8±0.30ms        ? ?/sec    1.00     26.9±0.19ms        ? ?/sec
decode metadata (wide) with skip all stats          1.01     30.7±0.36ms        ? ?/sec    1.00     30.5±0.15ms        ? ?/sec
decode metadata (wide) with skip column stats       1.01     28.3±0.37ms        ? ?/sec    1.00     27.9±0.19ms        ? ?/sec
decode metadata (wide) with skip size stats         1.02     31.1±0.36ms        ? ?/sec    1.00     30.6±0.16ms        ? ?/sec
decode metadata (wide) with stats mask              1.00     26.0±0.30ms        ? ?/sec    1.01     26.2±0.31ms        ? ?/sec
decode metadata with schema                         1.00      4.1±0.06µs        ? ?/sec    1.00      4.1±0.01µs        ? ?/sec
decode metadata with skip PES                       1.00      7.0±0.10µs        ? ?/sec    1.02      7.1±0.10µs        ? ?/sec
decode metadata with skip column stats              1.00      6.8±0.09µs        ? ?/sec    1.01      6.9±0.01µs        ? ?/sec
decode metadata with stats mask                     1.00      6.9±0.11µs        ? ?/sec    1.00      6.9±0.07µs        ? ?/sec
decode parquet metadata                             1.00      7.1±0.06µs        ? ?/sec    1.01      7.2±0.01µs        ? ?/sec
decode parquet metadata (wide)                      1.02     28.9±0.30ms        ? ?/sec    1.00     28.2±0.27ms        ? ?/sec
decode parquet metadata no path_in_schema (wide)    1.02     27.9±0.28ms        ? ?/sec    1.00     27.3±0.20ms        ? ?/sec
decode parquet metadata w/ size stats (wide)        1.00     34.5±0.35ms        ? ?/sec    1.00     34.4±0.17ms        ? ?/sec
open(default)                                       1.00      7.6±0.09µs        ? ?/sec    1.00      7.6±0.09µs        ? ?/sec
open(page index)                                    1.02    129.6±0.53µs        ? ?/sec    1.00    127.0±0.16µs        ? ?/sec
read page index                                     1.02    121.3±0.30µs        ? ?/sec    1.00    119.0±0.18µs        ? ?/sec
read page index reduced columns                     1.03     13.1±0.01µs        ? ?/sec    1.00     12.7±0.02µs        ? ?/sec

Per-runner information
metadata — shard 1/1

Node: gk3-benchmark-cluster-nap-1jhkfv09-ce9223d7-wpng

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

uname:

Linux bench-c6751912280-4720-8rkxm 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 metadata
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 175.0s
Peak memory 148.8 MiB
Avg memory 66.1 MiB
CPU user 168.9s
CPU sys 0.0s
Peak spill 0 B

branch

Metric Value
Wall time 170.0s
Peak memory 124.8 MiB
Avg memory 62.8 MiB
CPU user 167.2s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@etseidl

etseidl commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark metadata

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: metadata

Sharding factor: 1 (1 workers).

Comparing parquet-metadata-decoder-hardening (963e92f) to 30c5c32 (merge-base) diff

Run configuration
run benchmark metadata
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: metadata

Comparing parquet-metadata-decoder-hardening (963e92f) to 30c5c32 (merge-base) diff

Run configuration
run benchmark metadata
shards: 1
Details
group                                               base                                   changed
-----                                               ----                                   -------
decode metadata (wide) with schema                  1.00     26.1±0.80ms        ? ?/sec    1.01     26.4±0.87ms        ? ?/sec
decode metadata (wide) with skip PES                1.00     26.1±0.80ms        ? ?/sec    1.05     27.4±1.07ms        ? ?/sec
decode metadata (wide) with skip all stats          1.00     30.7±0.40ms        ? ?/sec    1.00     30.6±0.32ms        ? ?/sec
decode metadata (wide) with skip column stats       1.00     27.6±0.41ms        ? ?/sec    1.02     28.0±0.99ms        ? ?/sec
decode metadata (wide) with skip size stats         1.00     30.7±0.44ms        ? ?/sec    1.00     30.8±0.30ms        ? ?/sec
decode metadata (wide) with stats mask              1.00     25.8±0.72ms        ? ?/sec    1.01     26.2±0.94ms        ? ?/sec
decode metadata with schema                         1.01      4.1±0.01µs        ? ?/sec    1.00      4.0±0.01µs        ? ?/sec
decode metadata with skip PES                       1.00      7.0±0.10µs        ? ?/sec    1.01      7.1±0.09µs        ? ?/sec
decode metadata with skip column stats              1.00      6.8±0.10µs        ? ?/sec    1.02      7.0±0.15µs        ? ?/sec
decode metadata with stats mask                     1.00      6.9±0.12µs        ? ?/sec    1.00      7.0±0.11µs        ? ?/sec
decode parquet metadata                             1.00      7.1±0.05µs        ? ?/sec    1.01      7.2±0.01µs        ? ?/sec
decode parquet metadata (wide)                      1.03     28.3±0.72ms        ? ?/sec    1.00     27.5±0.74ms        ? ?/sec
decode parquet metadata no path_in_schema (wide)    1.02     27.6±0.43ms        ? ?/sec    1.00     27.1±0.44ms        ? ?/sec
decode parquet metadata w/ size stats (wide)        1.00     34.3±0.33ms        ? ?/sec    1.01     34.7±0.46ms        ? ?/sec
open(default)                                       1.00      7.6±0.09µs        ? ?/sec    1.00      7.6±0.09µs        ? ?/sec
open(page index)                                    1.02    129.7±0.17µs        ? ?/sec    1.00    127.3±0.21µs        ? ?/sec
read page index                                     1.02    121.5±0.23µs        ? ?/sec    1.00    119.2±0.19µs        ? ?/sec
read page index reduced columns                     1.02     13.1±0.01µs        ? ?/sec    1.00     12.8±0.03µs        ? ?/sec

Per-runner information
metadata — shard 1/1

Node: gk3-benchmark-cluster-nap-1fgd6drw-c70f956b-vh99

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

uname:

Linux bench-c6752262972-4721-hcbsc 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 metadata
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 170.0s
Peak memory 148.8 MiB
Avg memory 67.4 MiB
CPU user 167.8s
CPU sys 0.0s
Peak spill 0 B

branch

Metric Value
Wall time 170.0s
Peak memory 148.8 MiB
Avg memory 64.5 MiB
CPU user 167.2s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@etseidl

etseidl commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark metadata

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: metadata

Sharding factor: 1 (1 workers).

Comparing parquet-metadata-decoder-hardening (464816c) to 30c5c32 (merge-base) diff

Run configuration
run benchmark metadata
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@etseidl

etseidl commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark metadata

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: metadata

Sharding factor: 1 (1 workers).

Comparing parquet-metadata-decoder-hardening (464816c) to 30c5c32 (merge-base) diff

Run configuration
run benchmark metadata
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: metadata

Comparing parquet-metadata-decoder-hardening (464816c) to 30c5c32 (merge-base) diff

Run configuration
run benchmark metadata
shards: 1
Details
group                                               base                                   changed
-----                                               ----                                   -------
decode metadata (wide) with schema                  1.00     26.0±0.24ms        ? ?/sec    1.02     26.6±0.27ms        ? ?/sec
decode metadata (wide) with skip PES                1.00     26.4±0.23ms        ? ?/sec    1.03     27.0±0.25ms        ? ?/sec
decode metadata (wide) with skip all stats          1.00     30.3±0.16ms        ? ?/sec    1.01     30.7±0.16ms        ? ?/sec
decode metadata (wide) with skip column stats       1.00     27.8±0.20ms        ? ?/sec    1.01     28.2±0.20ms        ? ?/sec
decode metadata (wide) with skip size stats         1.00     30.5±0.20ms        ? ?/sec    1.01     31.0±0.21ms        ? ?/sec
decode metadata (wide) with stats mask              1.00     25.5±0.19ms        ? ?/sec    1.02     26.1±0.23ms        ? ?/sec
decode metadata with schema                         1.00      4.1±0.01µs        ? ?/sec    1.00      4.0±0.01µs        ? ?/sec
decode metadata with skip PES                       1.00      7.0±0.10µs        ? ?/sec    1.01      7.1±0.12µs        ? ?/sec
decode metadata with skip column stats              1.01      6.8±0.01µs        ? ?/sec    1.00      6.8±0.05µs        ? ?/sec
decode metadata with stats mask                     1.00      6.9±0.12µs        ? ?/sec    1.00      6.9±0.08µs        ? ?/sec
decode parquet metadata                             1.00      7.1±0.01µs        ? ?/sec    1.01      7.1±0.06µs        ? ?/sec
decode parquet metadata (wide)                      1.00     28.1±0.17ms        ? ?/sec    1.02     28.6±0.28ms        ? ?/sec
decode parquet metadata no path_in_schema (wide)    1.00     27.2±0.20ms        ? ?/sec    1.03     28.0±0.27ms        ? ?/sec
decode parquet metadata w/ size stats (wide)        1.00     34.1±0.20ms        ? ?/sec    1.03     35.0±0.21ms        ? ?/sec
open(default)                                       1.00      7.6±0.09µs        ? ?/sec    1.00      7.6±0.09µs        ? ?/sec
open(page index)                                    1.02    129.6±0.11µs        ? ?/sec    1.00    126.5±0.42µs        ? ?/sec
read page index                                     1.03    121.5±0.13µs        ? ?/sec    1.00    118.3±0.34µs        ? ?/sec
read page index reduced columns                     1.03     13.1±0.01µs        ? ?/sec    1.00     12.7±0.03µs        ? ?/sec

Per-runner information
metadata — shard 1/1

Node: gk3-benchmark-cluster-nap-j7bno9ag-e46c3af9-c4d8

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

uname:

Linux bench-c6837141324-4854-xh5qt 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 metadata
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 170.0s
Peak memory 148.8 MiB
Avg memory 67.4 MiB
CPU user 167.9s
CPU sys 0.0s
Peak spill 0 B

branch

Metric Value
Wall time 170.0s
Peak memory 124.8 MiB
Avg memory 63.4 MiB
CPU user 168.2s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: metadata

Comparing parquet-metadata-decoder-hardening (464816c) to 30c5c32 (merge-base) diff

Run configuration
run benchmark metadata
shards: 1
Details
group                                               base                                   changed
-----                                               ----                                   -------
decode metadata (wide) with schema                  1.00     25.9±0.31ms        ? ?/sec    1.02     26.4±0.33ms        ? ?/sec
decode metadata (wide) with skip PES                1.00     26.0±0.36ms        ? ?/sec    1.03     26.7±0.36ms        ? ?/sec
decode metadata (wide) with skip all stats          1.00     30.1±0.30ms        ? ?/sec    1.01     30.5±0.27ms        ? ?/sec
decode metadata (wide) with skip column stats       1.00     27.5±0.28ms        ? ?/sec    1.02     28.0±0.25ms        ? ?/sec
decode metadata (wide) with skip size stats         1.00     30.4±0.34ms        ? ?/sec    1.01     30.7±0.29ms        ? ?/sec
decode metadata (wide) with stats mask              1.00     25.3±0.32ms        ? ?/sec    1.02     25.8±0.32ms        ? ?/sec
decode metadata with schema                         1.02      4.1±0.01µs        ? ?/sec    1.00      4.0±0.01µs        ? ?/sec
decode metadata with skip PES                       1.02      7.1±0.02µs        ? ?/sec    1.00      7.0±0.11µs        ? ?/sec
decode metadata with skip column stats              1.01      6.8±0.01µs        ? ?/sec    1.00      6.7±0.01µs        ? ?/sec
decode metadata with stats mask                     1.00      6.9±0.01µs        ? ?/sec    1.00      6.9±0.07µs        ? ?/sec
decode parquet metadata                             1.00      7.1±0.01µs        ? ?/sec    1.00      7.1±0.01µs        ? ?/sec
decode parquet metadata (wide)                      1.00     27.9±0.35ms        ? ?/sec    1.02     28.4±0.33ms        ? ?/sec
decode parquet metadata no path_in_schema (wide)    1.00     27.0±0.32ms        ? ?/sec    1.03     27.7±0.31ms        ? ?/sec
decode parquet metadata w/ size stats (wide)        1.00     34.1±0.29ms        ? ?/sec    1.03     35.0±0.31ms        ? ?/sec
open(default)                                       1.01      7.6±0.10µs        ? ?/sec    1.00      7.6±0.09µs        ? ?/sec
open(page index)                                    1.02    129.2±0.12µs        ? ?/sec    1.00    126.4±0.41µs        ? ?/sec
read page index                                     1.03    121.6±0.18µs        ? ?/sec    1.00    118.4±0.35µs        ? ?/sec
read page index reduced columns                     1.04     13.1±0.01µs        ? ?/sec    1.00     12.6±0.04µs        ? ?/sec

Per-runner information
metadata — shard 1/1

Node: gk3-benchmark-cluster-nap-1afkvotn-f5396a58-n5sn

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

uname:

Linux bench-c6837144374-4855-wblsv 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 metadata
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 170.0s
Peak memory 148.8 MiB
Avg memory 56.0 MiB
CPU user 166.8s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 170.0s
Peak memory 148.8 MiB
Avg memory 67.8 MiB
CPU user 167.2s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@etseidl

etseidl commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark metadata

baseline:
  ref: 963e92fae89e47054f9cae9053ffdda3dde92eaa
changed:
  ref: 464816c51fdc815b733fe22616ce821654813adc

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: metadata

Sharding factor: 1 (1 workers).

Comparing 464816c (464816c) to 963e92f diff

Run configuration
run benchmark metadata
baseline:
  ref: 963e92fae89e47054f9cae9053ffdda3dde92eaa
changed:
  ref: 464816c51fdc815b733fe22616ce821654813adc
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@etseidl

etseidl commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark metadata

baseline:
  ref: 963e92fae89e47054f9cae9053ffdda3dde92eaa
changed:
  ref: 464816c51fdc815b733fe22616ce821654813adc

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: metadata

Sharding factor: 1 (1 workers).

Comparing 464816c (464816c) to 963e92f diff

Run configuration
run benchmark metadata
baseline:
  ref: 963e92fae89e47054f9cae9053ffdda3dde92eaa
changed:
  ref: 464816c51fdc815b733fe22616ce821654813adc
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: metadata

Comparing 464816c (464816c) to 963e92f diff

Run configuration
run benchmark metadata
baseline:
  ref: 963e92fae89e47054f9cae9053ffdda3dde92eaa
changed:
  ref: 464816c51fdc815b733fe22616ce821654813adc
shards: 1
Details
group                                               base                                   changed
-----                                               ----                                   -------
decode metadata (wide) with schema                  1.00     27.7±0.56ms        ? ?/sec    1.03     28.6±0.66ms        ? ?/sec
decode metadata (wide) with skip PES                1.00     27.5±0.49ms        ? ?/sec    1.06     29.3±0.24ms        ? ?/sec
decode metadata (wide) with skip all stats          1.00     32.1±0.60ms        ? ?/sec    1.02     32.8±0.54ms        ? ?/sec
decode metadata (wide) with skip column stats       1.00     28.5±0.49ms        ? ?/sec    1.06     30.2±0.62ms        ? ?/sec
decode metadata (wide) with skip size stats         1.00     31.8±0.54ms        ? ?/sec    1.04     33.2±0.41ms        ? ?/sec
decode metadata (wide) with stats mask              1.00     26.6±0.34ms        ? ?/sec    1.06     28.1±0.42ms        ? ?/sec
decode metadata with schema                         1.00      4.0±0.02µs        ? ?/sec    1.01      4.1±0.01µs        ? ?/sec
decode metadata with skip PES                       1.00      7.0±0.10µs        ? ?/sec    1.01      7.1±0.11µs        ? ?/sec
decode metadata with skip column stats              1.01      6.8±0.01µs        ? ?/sec    1.00      6.8±0.01µs        ? ?/sec
decode metadata with stats mask                     1.00      6.9±0.12µs        ? ?/sec    1.00      6.9±0.07µs        ? ?/sec
decode parquet metadata                             1.00      7.1±0.01µs        ? ?/sec    1.01      7.1±0.02µs        ? ?/sec
decode parquet metadata (wide)                      1.00     30.2±0.79ms        ? ?/sec    1.02     30.7±0.59ms        ? ?/sec
decode parquet metadata no path_in_schema (wide)    1.00     28.4±0.46ms        ? ?/sec    1.05     29.9±0.61ms        ? ?/sec
decode parquet metadata w/ size stats (wide)        1.00     36.0±0.84ms        ? ?/sec    1.04     37.4±0.41ms        ? ?/sec
open(default)                                       1.01      7.6±0.10µs        ? ?/sec    1.00      7.5±0.09µs        ? ?/sec
open(page index)                                    1.01    127.6±0.42µs        ? ?/sec    1.00    126.6±0.43µs        ? ?/sec
read page index                                     1.03    122.1±6.91µs        ? ?/sec    1.00    118.3±0.36µs        ? ?/sec
read page index reduced columns                     1.04     13.1±0.79µs        ? ?/sec    1.00     12.6±0.04µs        ? ?/sec

Per-runner information
metadata — shard 1/1

Node: gk3-benchmark-cluster-nap-1mg5tked-7d8245a9-k8xj

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

uname:

Linux bench-c6837992095-4857-ld2r9 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 metadata
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 175.0s
Peak memory 148.8 MiB
Avg memory 65.3 MiB
CPU user 171.9s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 180.0s
Peak memory 148.8 MiB
Avg memory 68.2 MiB
CPU user 174.1s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: metadata

Comparing 464816c (464816c) to 963e92f diff

Run configuration
run benchmark metadata
baseline:
  ref: 963e92fae89e47054f9cae9053ffdda3dde92eaa
changed:
  ref: 464816c51fdc815b733fe22616ce821654813adc
shards: 1
Details
group                                               base                                   changed
-----                                               ----                                   -------
decode metadata (wide) with schema                  1.01     28.1±0.28ms        ? ?/sec    1.00     27.8±0.29ms        ? ?/sec
decode metadata (wide) with skip PES                1.02     28.6±0.38ms        ? ?/sec    1.00     28.0±0.32ms        ? ?/sec
decode metadata (wide) with skip all stats          1.02     32.4±0.31ms        ? ?/sec    1.00     31.7±0.30ms        ? ?/sec
decode metadata (wide) with skip column stats       1.00     29.6±0.35ms        ? ?/sec    1.02     30.1±0.51ms        ? ?/sec
decode metadata (wide) with skip size stats         1.00     32.1±0.26ms        ? ?/sec    1.00     32.0±0.34ms        ? ?/sec
decode metadata (wide) with stats mask              1.00     27.1±0.28ms        ? ?/sec    1.00     27.2±0.34ms        ? ?/sec
decode metadata with schema                         1.00      4.0±0.01µs        ? ?/sec    1.00      4.0±0.01µs        ? ?/sec
decode metadata with skip PES                       1.00      7.0±0.11µs        ? ?/sec    1.00      7.0±0.02µs        ? ?/sec
decode metadata with skip column stats              1.00      6.8±0.09µs        ? ?/sec    1.01      6.8±0.01µs        ? ?/sec
decode metadata with stats mask                     1.00      6.9±0.12µs        ? ?/sec    1.00      6.9±0.09µs        ? ?/sec
decode parquet metadata                             1.00      7.1±0.01µs        ? ?/sec    1.01      7.2±0.01µs        ? ?/sec
decode parquet metadata (wide)                      1.00     30.2±0.35ms        ? ?/sec    1.00     30.1±0.33ms        ? ?/sec
decode parquet metadata no path_in_schema (wide)    1.01     29.3±0.30ms        ? ?/sec    1.00     29.0±0.42ms        ? ?/sec
decode parquet metadata w/ size stats (wide)        1.01     36.5±0.45ms        ? ?/sec    1.00     36.2±0.34ms        ? ?/sec
open(default)                                       1.00      7.6±0.09µs        ? ?/sec    1.00      7.6±0.10µs        ? ?/sec
open(page index)                                    1.01    127.3±0.19µs        ? ?/sec    1.00    126.4±0.33µs        ? ?/sec
read page index                                     1.00    119.0±0.18µs        ? ?/sec    1.00    118.5±0.41µs        ? ?/sec
read page index reduced columns                     1.00     12.7±0.02µs        ? ?/sec    1.00     12.7±0.05µs        ? ?/sec

Per-runner information
metadata — shard 1/1

Node: gk3-benchmark-cluster-nap-1mg5tked-7d8245a9-pr5x

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

uname:

Linux bench-c6837999906-4858-pwzg6 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 metadata
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 175.0s
Peak memory 124.8 MiB
Avg memory 64.7 MiB
CPU user 172.8s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 175.0s
Peak memory 148.8 MiB
Avg memory 65.2 MiB
CPU user 171.2s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@etseidl

etseidl commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark metadata

baseline:
  ref: 963e92fae89e47054f9cae9053ffdda3dde92eaa
changed:
  ref: 464816c51fdc815b733fe22616ce821654813adc

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: metadata

Sharding factor: 1 (1 workers).

Comparing 464816c (464816c) to 963e92f diff

Run configuration
run benchmark metadata
baseline:
  ref: 963e92fae89e47054f9cae9053ffdda3dde92eaa
changed:
  ref: 464816c51fdc815b733fe22616ce821654813adc
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: metadata

Comparing 464816c (464816c) to 963e92f diff

Run configuration
run benchmark metadata
baseline:
  ref: 963e92fae89e47054f9cae9053ffdda3dde92eaa
changed:
  ref: 464816c51fdc815b733fe22616ce821654813adc
shards: 1
Details
group                                               base                                   changed
-----                                               ----                                   -------
decode metadata (wide) with schema                  1.01     26.1±0.27ms        ? ?/sec    1.00     25.9±0.24ms        ? ?/sec
decode metadata (wide) with skip PES                1.00     26.5±0.22ms        ? ?/sec    1.00     26.4±0.30ms        ? ?/sec
decode metadata (wide) with skip all stats          1.00     30.0±0.25ms        ? ?/sec    1.00     30.1±0.27ms        ? ?/sec
decode metadata (wide) with skip column stats       1.00     27.6±0.22ms        ? ?/sec    1.00     27.7±0.29ms        ? ?/sec
decode metadata (wide) with skip size stats         1.00     29.9±0.27ms        ? ?/sec    1.02     30.4±0.24ms        ? ?/sec
decode metadata (wide) with stats mask              1.00     25.6±0.15ms        ? ?/sec    1.00     25.5±0.32ms        ? ?/sec
decode metadata with schema                         1.00      4.0±0.01µs        ? ?/sec    1.00      4.1±0.03µs        ? ?/sec
decode metadata with skip PES                       1.01      7.0±0.02µs        ? ?/sec    1.00      7.0±0.10µs        ? ?/sec
decode metadata with skip column stats              1.01      6.8±0.01µs        ? ?/sec    1.00      6.8±0.01µs        ? ?/sec
decode metadata with stats mask                     1.00      6.8±0.01µs        ? ?/sec    1.00      6.8±0.08µs        ? ?/sec
decode parquet metadata                             1.00      7.1±0.01µs        ? ?/sec    1.00      7.1±0.02µs        ? ?/sec
decode parquet metadata (wide)                      1.01     28.2±0.23ms        ? ?/sec    1.00     28.0±0.31ms        ? ?/sec
decode parquet metadata no path_in_schema (wide)    1.01     27.6±0.32ms        ? ?/sec    1.00     27.2±0.29ms        ? ?/sec
decode parquet metadata w/ size stats (wide)        1.00     34.6±0.25ms        ? ?/sec    1.00     34.5±0.24ms        ? ?/sec
open(default)                                       1.00      7.6±0.12µs        ? ?/sec    1.00      7.7±0.13µs        ? ?/sec
open(page index)                                    1.00    127.0±0.19µs        ? ?/sec    1.00    126.5±0.40µs        ? ?/sec
read page index                                     1.01    119.1±0.17µs        ? ?/sec    1.00    118.2±0.33µs        ? ?/sec
read page index reduced columns                     1.01     12.7±0.02µs        ? ?/sec    1.00     12.6±0.03µs        ? ?/sec

Per-runner information
metadata — shard 1/1

Node: gk3-benchmark-cluster-nap-1ezi61a7-c3ad28b6-5tgc

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

uname:

Linux bench-c6838302743-4861-7fsmx 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 metadata
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 170.0s
Peak memory 125.7 MiB
Avg memory 47.2 MiB
CPU user 166.9s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 170.0s
Peak memory 148.8 MiB
Avg memory 66.6 MiB
CPU user 166.2s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@etseidl
etseidl force-pushed the parquet-metadata-decoder-hardening branch from 464816c to 977137d Compare November 13, 2026 00:26
@etseidl

etseidl commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark metadata

baseline:
  ref: 275adb2c0cf3cd2cccf386c0591126a56ada7f1f
changed:
  ref: 977137d60ee54236e591d917107395cfd77331a4

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: metadata

Sharding factor: 1 (1 workers).

Comparing 977137d (977137d) to 275adb2 diff

Run configuration
run benchmark metadata
baseline:
  ref: 275adb2c0cf3cd2cccf386c0591126a56ada7f1f
changed:
  ref: 977137d60ee54236e591d917107395cfd77331a4
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@etseidl

etseidl commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark metadata

baseline:
  ref: 275adb2c0cf3cd2cccf386c0591126a56ada7f1f
changed:
  ref: 977137d60ee54236e591d917107395cfd77331a4

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: metadata

Sharding factor: 1 (1 workers).

Comparing 977137d (977137d) to 275adb2 diff

Run configuration
run benchmark metadata
baseline:
  ref: 275adb2c0cf3cd2cccf386c0591126a56ada7f1f
changed:
  ref: 977137d60ee54236e591d917107395cfd77331a4
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: metadata

Comparing 977137d (977137d) to 275adb2 diff

Run configuration
run benchmark metadata
baseline:
  ref: 275adb2c0cf3cd2cccf386c0591126a56ada7f1f
changed:
  ref: 977137d60ee54236e591d917107395cfd77331a4
shards: 1
Details
group                                               base                                   changed
-----                                               ----                                   -------
decode metadata (wide) with schema                  1.00     29.3±0.48ms        ? ?/sec    1.00     29.2±0.32ms        ? ?/sec
decode metadata (wide) with skip PES                1.02     29.5±0.58ms        ? ?/sec    1.00     29.0±0.76ms        ? ?/sec
decode metadata (wide) with skip all stats          1.00     33.7±0.24ms        ? ?/sec    1.00     33.6±0.30ms        ? ?/sec
decode metadata (wide) with skip column stats       1.01     31.7±0.28ms        ? ?/sec    1.00     31.4±0.46ms        ? ?/sec
decode metadata (wide) with skip size stats         1.00     33.4±0.52ms        ? ?/sec    1.00     33.3±0.36ms        ? ?/sec
decode metadata (wide) with stats mask              1.04     28.7±0.40ms        ? ?/sec    1.00     27.4±0.48ms        ? ?/sec
decode metadata with schema                         1.00      4.1±0.01µs        ? ?/sec    1.00      4.1±0.01µs        ? ?/sec
decode metadata with skip PES                       1.00      7.1±0.03µs        ? ?/sec    1.00      7.1±0.07µs        ? ?/sec
decode metadata with skip column stats              1.00      6.9±0.11µs        ? ?/sec    1.00      6.8±0.06µs        ? ?/sec
decode metadata with stats mask                     1.00      6.9±0.09µs        ? ?/sec    1.01      7.0±0.12µs        ? ?/sec
decode parquet metadata                             1.00      7.2±0.03µs        ? ?/sec    1.00      7.2±0.01µs        ? ?/sec
decode parquet metadata (wide)                      1.00     31.3±0.45ms        ? ?/sec    1.00     31.2±0.50ms        ? ?/sec
decode parquet metadata no path_in_schema (wide)    1.02     30.7±0.39ms        ? ?/sec    1.00     30.1±0.43ms        ? ?/sec
decode parquet metadata w/ size stats (wide)        1.03     37.7±0.47ms        ? ?/sec    1.00     36.6±0.33ms        ? ?/sec
open(default)                                       1.00      7.7±0.10µs        ? ?/sec    1.01      7.8±0.09µs        ? ?/sec
open(page index)                                    1.00    130.8±0.21µs        ? ?/sec    1.00    130.5±0.35µs        ? ?/sec
read page index                                     1.01    123.0±0.22µs        ? ?/sec    1.00    122.2±0.14µs        ? ?/sec
read page index reduced columns                     1.00     13.2±0.02µs        ? ?/sec    1.00     13.2±0.02µs        ? ?/sec

Per-runner information
metadata — shard 1/1

Node: gk3-benchmark-cluster-nap-mi8iqi2p-b2e82684-sgfr

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

uname:

Linux bench-c6840052613-4862-ss99c 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 metadata
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 180.0s
Peak memory 148.8 MiB
Avg memory 69.9 MiB
CPU user 177.6s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 180.0s
Peak memory 148.8 MiB
Avg memory 69.0 MiB
CPU user 176.2s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: metadata

Comparing 977137d (977137d) to 275adb2 diff

Run configuration
run benchmark metadata
baseline:
  ref: 275adb2c0cf3cd2cccf386c0591126a56ada7f1f
changed:
  ref: 977137d60ee54236e591d917107395cfd77331a4
shards: 1
Details
group                                               base                                   changed
-----                                               ----                                   -------
decode metadata (wide) with schema                  1.00     27.8±0.69ms        ? ?/sec    1.03     28.7±0.40ms        ? ?/sec
decode metadata (wide) with skip PES                1.00     27.6±0.50ms        ? ?/sec    1.01     28.0±0.40ms        ? ?/sec
decode metadata (wide) with skip all stats          1.02     33.2±0.28ms        ? ?/sec    1.00     32.7±0.23ms        ? ?/sec
decode metadata (wide) with skip column stats       1.00     30.3±0.47ms        ? ?/sec    1.00     30.1±0.47ms        ? ?/sec
decode metadata (wide) with skip size stats         1.04     32.9±0.56ms        ? ?/sec    1.00     31.8±0.38ms        ? ?/sec
decode metadata (wide) with stats mask              1.00     26.6±0.58ms        ? ?/sec    1.02     27.1±0.52ms        ? ?/sec
decode metadata with schema                         1.00      4.1±0.01µs        ? ?/sec    1.03      4.2±0.02µs        ? ?/sec
decode metadata with skip PES                       1.00      7.1±0.10µs        ? ?/sec    1.00      7.1±0.12µs        ? ?/sec
decode metadata with skip column stats              1.01      6.9±0.04µs        ? ?/sec    1.00      6.8±0.01µs        ? ?/sec
decode metadata with stats mask                     1.00      7.0±0.12µs        ? ?/sec    1.00      7.0±0.07µs        ? ?/sec
decode parquet metadata                             1.00      7.1±0.03µs        ? ?/sec    1.01      7.2±0.01µs        ? ?/sec
decode parquet metadata (wide)                      1.00     30.8±0.52ms        ? ?/sec    1.00     30.8±0.41ms        ? ?/sec
decode parquet metadata no path_in_schema (wide)    1.01     29.4±0.42ms        ? ?/sec    1.00     29.0±0.30ms        ? ?/sec
decode parquet metadata w/ size stats (wide)        1.02     36.3±0.52ms        ? ?/sec    1.00     35.5±0.35ms        ? ?/sec
open(default)                                       1.00      7.6±0.11µs        ? ?/sec    1.02      7.8±0.10µs        ? ?/sec
open(page index)                                    1.01    131.0±0.54µs        ? ?/sec    1.00    130.3±0.16µs        ? ?/sec
read page index                                     1.01    122.7±0.16µs        ? ?/sec    1.00    122.0±0.13µs        ? ?/sec
read page index reduced columns                     1.00     13.2±0.02µs        ? ?/sec    1.00     13.2±0.02µs        ? ?/sec

Per-runner information
metadata — shard 1/1

Node: gk3-benchmark-cluster-nap-re2f7uj5-3e952da4-skmz

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

uname:

Linux bench-c6840056156-4863-qzbjs 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 metadata
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 180.0s
Peak memory 124.8 MiB
Avg memory 62.8 MiB
CPU user 173.9s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 180.0s
Peak memory 148.8 MiB
Avg memory 67.7 MiB
CPU user 174.2s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@etseidl

etseidl commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark metadata

baseline:
  ref: 977137d60ee54236e591d917107395cfd77331a4
changed:
  ref: 275adb2c0cf3cd2cccf386c0591126a56ada7f1f

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: metadata

Sharding factor: 1 (1 workers).

Comparing 275adb2 (275adb2) to 977137d diff

Run configuration
run benchmark metadata
baseline:
  ref: 977137d60ee54236e591d917107395cfd77331a4
changed:
  ref: 275adb2c0cf3cd2cccf386c0591126a56ada7f1f
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@etseidl

etseidl commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark metadata

baseline:
  ref: 977137d60ee54236e591d917107395cfd77331a4
changed:
  ref: 275adb2c0cf3cd2cccf386c0591126a56ada7f1f

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: metadata

Comparing 275adb2 (275adb2) to 977137d diff

Run configuration
run benchmark metadata
baseline:
  ref: 977137d60ee54236e591d917107395cfd77331a4
changed:
  ref: 275adb2c0cf3cd2cccf386c0591126a56ada7f1f
shards: 1
Details
group                                               base                                   changed
-----                                               ----                                   -------
decode metadata (wide) with schema                  1.01     25.1±0.24ms        ? ?/sec    1.00     24.9±0.20ms        ? ?/sec
decode metadata (wide) with skip PES                1.01     25.5±0.29ms        ? ?/sec    1.00     25.3±0.26ms        ? ?/sec
decode metadata (wide) with skip all stats          1.00     29.5±0.17ms        ? ?/sec    1.01     29.6±0.23ms        ? ?/sec
decode metadata (wide) with skip column stats       1.00     27.0±0.19ms        ? ?/sec    1.00     26.9±0.24ms        ? ?/sec
decode metadata (wide) with skip size stats         1.00     29.6±0.31ms        ? ?/sec    1.00     29.6±0.33ms        ? ?/sec
decode metadata (wide) with stats mask              1.01     24.7±0.27ms        ? ?/sec    1.00     24.4±0.20ms        ? ?/sec
decode metadata with schema                         1.01      4.1±0.01µs        ? ?/sec    1.00      4.1±0.01µs        ? ?/sec
decode metadata with skip PES                       1.01      7.1±0.10µs        ? ?/sec    1.00      7.1±0.10µs        ? ?/sec
decode metadata with skip column stats              1.01      6.8±0.04µs        ? ?/sec    1.00      6.8±0.04µs        ? ?/sec
decode metadata with stats mask                     1.01      7.0±0.15µs        ? ?/sec    1.00      6.9±0.17µs        ? ?/sec
decode parquet metadata                             1.01      7.2±0.02µs        ? ?/sec    1.00      7.2±0.04µs        ? ?/sec
decode parquet metadata (wide)                      1.01     27.2±0.25ms        ? ?/sec    1.00     27.0±0.20ms        ? ?/sec
decode parquet metadata no path_in_schema (wide)    1.01     26.3±0.23ms        ? ?/sec    1.00     26.1±0.17ms        ? ?/sec
decode parquet metadata w/ size stats (wide)        1.00     33.3±0.25ms        ? ?/sec    1.00     33.2±0.22ms        ? ?/sec
open(default)                                       1.00      7.7±0.09µs        ? ?/sec    1.00      7.7±0.12µs        ? ?/sec
open(page index)                                    1.00    129.9±0.09µs        ? ?/sec    1.02    133.1±5.72µs        ? ?/sec
read page index                                     1.00    122.4±2.76µs        ? ?/sec    1.00    122.3±0.14µs        ? ?/sec
read page index reduced columns                     1.00     13.2±0.32µs        ? ?/sec    1.00     13.2±0.01µs        ? ?/sec

Per-runner information
metadata — shard 1/1

Node: gk3-benchmark-cluster-nap-ez8gwx9u-a9459978-zn7v

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

uname:

Linux bench-c6856909695-4936-jq79p 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 metadata
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 175.0s
Peak memory 148.8 MiB
Avg memory 66.5 MiB
CPU user 169.9s
CPU sys 0.0s
Peak spill 0 B

branch

Metric Value
Wall time 170.0s
Peak memory 148.8 MiB
Avg memory 66.5 MiB
CPU user 167.2s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: metadata

Sharding factor: 1 (1 workers).

Comparing 275adb2 (275adb2) to 977137d diff

Run configuration
run benchmark metadata
baseline:
  ref: 977137d60ee54236e591d917107395cfd77331a4
changed:
  ref: 275adb2c0cf3cd2cccf386c0591126a56ada7f1f
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: metadata

Comparing 275adb2 (275adb2) to 977137d diff

Run configuration
run benchmark metadata
baseline:
  ref: 977137d60ee54236e591d917107395cfd77331a4
changed:
  ref: 275adb2c0cf3cd2cccf386c0591126a56ada7f1f
shards: 1
Details
group                                               base                                   changed
-----                                               ----                                   -------
decode metadata (wide) with schema                  1.01     25.1±0.26ms        ? ?/sec    1.00     24.9±0.21ms        ? ?/sec
decode metadata (wide) with skip PES                1.00     25.4±0.32ms        ? ?/sec    1.00     25.4±0.28ms        ? ?/sec
decode metadata (wide) with skip all stats          1.00     29.4±0.18ms        ? ?/sec    1.00     29.6±0.16ms        ? ?/sec
decode metadata (wide) with skip column stats       1.01     27.1±0.18ms        ? ?/sec    1.00     26.9±0.15ms        ? ?/sec
decode metadata (wide) with skip size stats         1.00     29.6±0.28ms        ? ?/sec    1.00     29.5±0.23ms        ? ?/sec
decode metadata (wide) with stats mask              1.00     24.6±0.29ms        ? ?/sec    1.00     24.5±0.22ms        ? ?/sec
decode metadata with schema                         1.01      4.1±0.01µs        ? ?/sec    1.00      4.1±0.01µs        ? ?/sec
decode metadata with skip PES                       1.01      7.1±0.02µs        ? ?/sec    1.00      7.0±0.04µs        ? ?/sec
decode metadata with skip column stats              1.00      6.8±0.02µs        ? ?/sec    1.01      6.9±0.14µs        ? ?/sec
decode metadata with stats mask                     1.00      6.9±0.02µs        ? ?/sec    1.01      7.0±0.15µs        ? ?/sec
decode parquet metadata                             1.00      7.2±0.01µs        ? ?/sec    1.00      7.2±0.04µs        ? ?/sec
decode parquet metadata (wide)                      1.01     27.3±0.32ms        ? ?/sec    1.00     26.9±0.22ms        ? ?/sec
decode parquet metadata no path_in_schema (wide)    1.01     26.3±0.25ms        ? ?/sec    1.00     26.2±0.23ms        ? ?/sec
decode parquet metadata w/ size stats (wide)        1.00     33.3±0.26ms        ? ?/sec    1.00     33.4±0.24ms        ? ?/sec
open(default)                                       1.00      7.7±0.09µs        ? ?/sec    1.01      7.7±0.09µs        ? ?/sec
open(page index)                                    1.00    129.6±0.09µs        ? ?/sec    1.01    130.5±0.11µs        ? ?/sec
read page index                                     1.00    121.8±0.08µs        ? ?/sec    1.01    122.5±0.14µs        ? ?/sec
read page index reduced columns                     1.00     13.2±0.01µs        ? ?/sec    1.00     13.2±0.02µs        ? ?/sec

Per-runner information
metadata — shard 1/1

Node: gk3-benchmark-cluster-nap-ez8gwx9u-a9459978-zn7v

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

uname:

Linux bench-c6856913001-4937-8pngj 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 metadata
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 175.0s
Peak memory 125.7 MiB
Avg memory 46.3 MiB
CPU user 169.9s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 175.0s
Peak memory 148.9 MiB
Avg memory 65.9 MiB
CPU user 169.2s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@etseidl etseidl changed the title [WIP] fix(parquet): Address some Thrift decoding issues identified via fuzzing fix(parquet): Harden Thrift decoding of binary lengths and collection counts Nov 13, 2026
@etseidl
etseidl force-pushed the parquet-metadata-decoder-hardening branch from 977137d to ffa5a3d Compare November 13, 2026 18:50
@etseidl etseidl added the bug Squash those bugs label Nov 13, 2026
@etseidl
etseidl marked this pull request as ready for review November 13, 2026 18:53
Comment on lines +81 to +83
let size = list_ident.size as usize;
check_list_size(prot.remaining_bytes(), size)?;
let mut page_locations = Vec::with_capacity(size);

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.

No existing issue for this change. I just thought I'd fix it along with the others.

@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.

looks good to me

let list_ident = prot.read_list_begin()?;
validate_list_type(ElementType::Struct, &list_ident)?;
let mut page_locations = Vec::with_capacity(list_ident.size as usize);
let size = list_ident.size as usize;

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 we use try_into for this conversion (as usize it 32 bits on wasm, etc)?

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.

read_list_begin already guarantees the conversion is safe. I'll add a comment to that effect.

@etseidl
etseidl enabled auto-merge November 13, 2026 22:08
@etseidl
etseidl added this pull request to the merge queue Nov 13, 2026
Merged via the queue into apache:main with commit df096d7 Nov 13, 2026
21 of 22 checks passed
@etseidl
etseidl deleted the parquet-metadata-decoder-hardening branch November 13, 2026 23:03
schenksj added a commit to indextables/arrow-rs that referenced this pull request Nov 20, 2026
…length

ThriftReadInputProtocol::read_bytes_owned, which reads a stream-backed
page header's binary statistics, sized its vector by the declared length
with Vec::with_capacity, so a length too large to allocate aborted the
process, and returned a short vector when the input ended early. It now
reserves at most 8 KiB up front, grows with the bytes it reads, and fails
when fewer bytes than declared remain, as upstream does since
apache#12142.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018zkiLHRETaEooWKYVSAV3L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Squash those bugs parquet parquet crate

Projects

None yet

3 participants