Skip to content

Prune parquet row groups using fully dictionary-encoded columns - #23851

Closed
DarkWanderer wants to merge 7 commits into
apache:mainfrom
DarkWanderer:dictionary-filter
Closed

DarkWanderer wants to merge 7 commits into
apache:mainfrom
DarkWanderer:dictionary-filter

Conversation

@DarkWanderer

@DarkWanderer DarkWanderer commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

N/A

Rationale for this change

Dictionary pages are essentially free, exact indexes for IN/NOT IN queries. Bloom filters can prove a target value is absent from a row group (useful for pruning =/IN), but they are probabilistic (non-zero false-positive rate) and cannot prove a NOT IN/!= exclusion, since that would require confirming every distinct value in the row group is excluded -- information a bloom filter doesn't retain. A fully dictionary-encoded column chunk does retain the complete set of distinct values, so it can prune exactly in both directions: IN/= when the dictionary is disjoint from the target set, and NOT IN/!= when the dictionary is a subset of the excluded set. This approach stacks with bloom filters: dictionary pruning subsumes bloom-filter pruning where it applies, and is exact (no false positives) where bloom filters are only probabilistic.

What changes are included in this PR?

  • New opt-in datafusion.execution.parquet.dictionary_filter_on_read
    config option (default false).
  • DictionaryStatistics (dictionary_filter.rs): an exact
    PruningStatistics impl backed by decoded dictionary values.
    Insertion is gated on is_fully_dictionary_encoded, which requires a
    chunk's page encoding stats to be exactly
    PLAIN_DICTIONARY/RLE_DICTIONARY (a writer that fell back to
    PLAIN partway through no longer has a complete dictionary), and on
    eligible_dictionary_page, which rejects chunks whose dictionary page
    byte range is inconsistent or larger than 128 MiB.
  • RowGroupAccessPlanFilter::prune_by_dictionary and a
    LoadDictionaries stage in the Parquet opener's state machine, after
    the bloom-filter stage. Dictionary pages are fetched with bounded
    concurrency and each row group is pruned as soon as its dictionaries
    arrive. Row groups already proven fully matched by statistics are
    skipped.
  • A new row_groups_pruned_dictionary metric, .slt coverage
    (parquet_dictionary_pruning.slt, plus the metric added to existing
    EXPLAIN ANALYZE golden files), and two criterion benchmarks: a
    pruning-cost microbenchmark in datasource-parquet and an end-to-end
    query benchmark in core with an optional per-request latency to
    model object storage.

Session vs. table option precedence

Other Parquet read options (bloom_filter_on_read, enable_page_index,
...) are captured at CREATE EXTERNAL TABLE time, so a later
SET datafusion.execution.parquet.<option> has no effect on existing
tables. For dictionary_filter_on_read this PR deliberately deviates:
when a scan is planned through ParquetFormat, the current session
value overrides the table-level option, so SET/RESET toggles the
feature on existing tables. Scans already planned keep the value they
were planned with. The tradeoff is that an explicit
OPTIONS('format.dictionary_filter_on_read' 'true') on the table is
ignored when the session value is false. The alternative
table || session semantics (used by pushdown_filters) was
considered; it honours explicit table opt-in but makes it impossible to
disable the feature per session. Happy to switch if reviewers prefer
consistency with the other options.

arrow-rs dependency

The dictionary-page read API this relies on
(ParquetRecordBatchStreamBuilder::get_column_chunk_dictionary,
apache/arrow-rs#10420, closes apache/arrow-rs#9010) shipped in arrow-rs
60.1.0, which main already uses. No [patch.crates-io] is needed.

Are these changes tested?

Yes: unit tests in dictionary_filter.rs mirroring bloom_filter.rs
(absent value, IN list absent, present value, != sole value,
NOT IN list, a PLAIN-fallback chunk correctly not pruned, and the
dictionary-page eligibility guard), an integration test for the
session-override semantics (string_in_list_pruning.rs), new .slt
coverage showing row_groups_pruned_dictionary in EXPLAIN ANALYZE,
and the two criterion benchmarks.

Are there any user-facing changes?

Yes: a new opt-in config option dictionary_filter_on_read (default
false, no behavior change unless enabled) and a new
row_groups_pruned_dictionary metric in EXPLAIN ANALYZE.

🤖 Generated with Claude Code

https://claude.ai/code/session_012oZ19JVxvTCWQKRoQnYpSR

@github-actions github-actions Bot added documentation Improvements or additions to documentation sqllogictest SQL Logic Tests (.slt) common Related to common crate proto Related to proto crate datasource Changes to the datasource crate auto detected api change Auto detected API change labels Jul 23, 2026
@github-actions github-actions Bot added the physical-expr Changes to the physical-expr crates label Jul 23, 2026
@codecov-commenter

codecov-commenter commented Jul 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.43137% with 59 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.50%. Comparing base (e8e41ae) to head (840df44).
⚠️ Report is 432 commits behind head on main.

Files with missing lines Patch % Lines
...fusion/datasource-parquet/src/dictionary_filter.rs 94.13% 15 Missing and 3 partials ⚠️
datafusion/datasource-parquet/src/opener/mod.rs 86.88% 13 Missing and 3 partials ⚠️
datafusion/proto-common/src/generated/pbjson.rs 26.66% 8 Missing and 3 partials ⚠️
datafusion/datasource-parquet/src/source.rs 33.33% 8 Missing ⚠️
...afusion/datasource-parquet/src/row_group_filter.rs 83.33% 4 Missing ⚠️
...tafusion/physical-expr-common/src/metrics/value.rs 88.23% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main   #23851    +/-   ##
========================================
  Coverage   82.49%   82.50%            
========================================
  Files        1140     1141     +1     
  Lines      438529   439018   +489     
  Branches   438529   439018   +489     
========================================
+ Hits       361783   362200   +417     
- Misses      54874    54933    +59     
- Partials    21872    21885    +13     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alamb

alamb commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Thanks @DarkWanderer -- do you have any benchmarks / examples showing this in action / showing how it is faster?

The idea in theory sounds reasonable but it would be good to verify it in practice

@github-actions github-actions Bot added the core Core DataFusion crate label Aug 16, 2026
@DarkWanderer

Copy link
Copy Markdown
Contributor Author

Thanks for feedback @alamb

Here is a benchmark on synthetic dataset mimicking the shape of observability traces data. The specific property that highlights the performance gain is - TraceIDs are pseudo-random (so stats-based pruning doesn't help), but are clustered in time.

I imagine it would be applicable to any "needle in haystack" scan where the search key is clustered along sorting key.

Wall-clock time

Criterion, measurement_time=20s, sample_size=10. Reported as [lower – mean – upper] (95% CI).

query variant time
trace_lookup stats_only 139.07 – 139.77 – 140.59 ms
trace_lookup dictionary 16.570 – 16.668 – 16.745 ms
trace_lookup bloom_filter 26.027 – 26.206 – 26.383 ms
trace_lookup bloom_and_dictionary 12.515 – 12.557 – 12.632 ms
trace_lookup_in stats_only 145.01 – 145.52 – 146.43 ms
trace_lookup_in dictionary 17.070 – 17.141 – 17.280 ms
trace_lookup_in bloom_filter 119.48 – 120.15 – 120.93 ms
trace_lookup_in bloom_and_dictionary 16.675 – 17.050 – 17.262 ms
tenant_not_in stats_only 110.58 – 111.31 – 111.95 ms
tenant_not_in dictionary 42.035 – 43.480 – 44.281 ms
tenant_not_in bloom_filter 111.48 – 111.89 – 112.35 ms
tenant_not_in bloom_and_dictionary 41.197 – 43.731 – 45.428 ms

Dictionary pruning is ~comparable to bloom filter in wall clock, but importantly, doesn't require extra writes; also, it can be used together with bloom filtering, compounding the win. More importantly, it allows better performance for "in" and "not in" scenarios which degrade bloom performance or cannot be handled at all respectively.

Bytes read

This measures the efficiency gain from more precise page pruning. This win is not fully highlighted by using local SSD - but in S3-backed object-store context, I expect that reduction to have a much more pronounced effect.

query variant row groups kept bytes_scanned index bytes data pages
trace_lookup stats_only 64/64 383.09MiB 0 383.09MiB
trace_lookup dictionary 1/64 8.12MiB 2.13MiB (dict) 5.99MiB
trace_lookup bloom_filter 4/64 24.07MiB 129.00KiB (bloom) 23.94MiB
trace_lookup bloom_and_dictionary 1/64 6.25MiB n/a n/a
trace_lookup_in stats_only 64/64 383.09MiB 0 383.09MiB
trace_lookup_in dictionary 1/64 8.12MiB 2.13MiB (dict) 5.99MiB
trace_lookup_in bloom_filter 50/64 299.42MiB 129.00KiB (bloom) 299.29MiB
trace_lookup_in bloom_and_dictionary 1/64 7.78MiB n/a n/a
tenant_not_in stats_only 64/64 335.96MiB 0 335.96MiB
tenant_not_in dictionary 16/64 84.45MiB 4.43KiB (dict) 84.45MiB
tenant_not_in bloom_filter 64/64 335.96MiB 2.94KiB (bloom) 335.96MiB
tenant_not_in bloom_and_dictionary 16/64 84.45MiB n/a n/a

Grain of salt: this dataset mimics a very specific domain I was optimizing for, I am not sure how well the wins translate to general use cases.

@alamb

alamb commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Thank you for this @DarkWanderer

I am sorry I haven't had a chance to review this -- it sounds great. But I am totally swamped at the moment (and for the forseeable future 😢 )

etseidl added a commit to apache/arrow-rs that referenced this pull request Sep 25, 2026
# Which issue does this PR close?

- Closes #9010.
- Supersedes #9011 (closed as stale)

# Rationale for this change

This change provides low-level API necessary for enabling
dictionary-based pruning in DataFusion:
apache/datafusion#23851

# What changes are included in this PR?

- `parquet::file::metadata::dictionary::decode_dictionary_page`: decodes
a BYTE_ARRAY dictionary page (Thrift header parse, decompress, PLAIN
decode) into a `Utf8`/`Binary` Arrow array.
- `ParquetMetaDataReader::read_column_dictionary` (sync) and
`read_column_dictionary_async` (async) to fetch and decode a given row
group/column's dictionary page from a `ParquetMetaData`, returning
`Ok(None)` if the chunk has no dictionary page.
- `ParquetRecordBatchStreamBuilder::get_row_group_column_dictionary`
convenience method mirroring `get_row_group_column_bloom_filter`.

# Are these changes tested?

Yes: a round-trip unit test for a dictionary-encoded string column, a
non-BYTE_ARRAY rejection test, and sync + async reader tests that decode
a real dictionary page written through `ArrowWriter`.

# Are there any user-facing changes?

Yes, three new public APIs (see above). No changes to
existing API.

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
Co-authored-by: Ed Seidl <[email protected]>
@github-actions github-actions Bot added the physical-plan Changes to the physical-plan crate label Sep 25, 2026
@github-actions github-actions Bot removed the physical-plan Changes to the physical-plan crate label Nov 1, 2026
@DarkWanderer
DarkWanderer marked this pull request as ready for review November 1, 2026 20:14
@adriangb

adriangb commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

run benchmarks

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c6569433908-4223-cxz9n 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

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

Comparing dictionary-filter (07acfb1) to 6a9a129 (merge-base) diff

Run configuration
run benchmark tpcds

Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c6569433908-4224-tm9f7 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

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

Comparing dictionary-filter (07acfb1) to 6a9a129 (merge-base) diff

Run configuration
run benchmark tpch

Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c6569433908-4222-jk9kp 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

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

Comparing dictionary-filter (07acfb1) to 6a9a129 (merge-base) diff

Run configuration
run benchmark clickbench_partitioned

Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

Comparing dictionary-filter (07acfb1) to 6a9a129 (merge-base) diff

Run configuration
run benchmark tpch
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
Details

Comparing HEAD and dictionary-filter
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Query     ┃     HEAD ┃ dictionary-filter ┃    Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ QQuery 1  │ 40.76 ms │          40.20 ms │ no change │
│ QQuery 2  │ 17.99 ms │          18.05 ms │ no change │
│ QQuery 3  │ 28.27 ms │          28.05 ms │ no change │
│ QQuery 4  │ 17.08 ms │          17.06 ms │ no change │
│ QQuery 5  │ 34.74 ms │          34.94 ms │ no change │
│ QQuery 6  │ 13.75 ms │          13.66 ms │ no change │
│ QQuery 7  │ 40.78 ms │          42.12 ms │ no change │
│ QQuery 8  │ 40.74 ms │          40.90 ms │ no change │
│ QQuery 9  │ 49.61 ms │          51.00 ms │ no change │
│ QQuery 10 │ 39.86 ms │          40.40 ms │ no change │
│ QQuery 11 │ 12.95 ms │          13.31 ms │ no change │
│ QQuery 12 │ 17.87 ms │          18.00 ms │ no change │
│ QQuery 13 │ 39.35 ms │          39.08 ms │ no change │
│ QQuery 14 │ 24.08 ms │          24.10 ms │ no change │
│ QQuery 15 │ 30.76 ms │          30.80 ms │ no change │
│ QQuery 16 │ 13.41 ms │          13.30 ms │ no change │
│ QQuery 17 │ 74.13 ms │          75.16 ms │ no change │
│ QQuery 18 │ 75.40 ms │          75.34 ms │ no change │
│ QQuery 19 │ 31.55 ms │          31.98 ms │ no change │
│ QQuery 20 │ 31.54 ms │          31.63 ms │ no change │
│ QQuery 21 │ 55.70 ms │          55.77 ms │ no change │
│ QQuery 22 │ 13.53 ms │          13.48 ms │ no change │
└───────────┴──────────┴───────────────────┴───────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                │ 743.87ms │
│ Total Time (dictionary-filter)   │ 748.34ms │
│ Average Time (HEAD)              │  33.81ms │
│ Average Time (dictionary-filter) │  34.02ms │
│ Queries Faster                   │        0 │
│ Queries Slower                   │        0 │
│ Queries with No Change           │       22 │
│ Queries with Failure             │        0 │
└──────────────────────────────────┴──────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and dictionary-filter
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃              dictionary-filter ┃    Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ QQuery 1  │ 40.76 / 41.85 ±1.19 / 43.55 ms │ 40.20 / 41.33 ±1.12 / 43.16 ms │ no change │
│ QQuery 2  │ 17.99 / 18.69 ±1.09 / 20.86 ms │ 18.05 / 18.50 ±0.52 / 19.51 ms │ no change │
│ QQuery 3  │ 28.27 / 28.41 ±0.12 / 28.62 ms │ 28.05 / 28.46 ±0.54 / 29.51 ms │ no change │
│ QQuery 4  │ 17.08 / 17.30 ±0.16 / 17.47 ms │ 17.06 / 17.47 ±0.48 / 18.42 ms │ no change │
│ QQuery 5  │ 34.74 / 35.21 ±0.25 / 35.48 ms │ 34.94 / 35.89 ±1.73 / 39.34 ms │ no change │
│ QQuery 6  │ 13.75 / 13.80 ±0.03 / 13.85 ms │ 13.66 / 14.07 ±0.66 / 15.38 ms │ no change │
│ QQuery 7  │ 40.78 / 42.49 ±1.23 / 44.18 ms │ 42.12 / 42.62 ±0.67 / 43.91 ms │ no change │
│ QQuery 8  │ 40.74 / 42.31 ±1.73 / 44.78 ms │ 40.90 / 43.16 ±2.96 / 48.89 ms │ no change │
│ QQuery 9  │ 49.61 / 50.64 ±1.23 / 53.04 ms │ 51.00 / 51.63 ±0.79 / 53.16 ms │ no change │
│ QQuery 10 │ 39.86 / 40.11 ±0.19 / 40.33 ms │ 40.40 / 41.00 ±0.87 / 42.67 ms │ no change │
│ QQuery 11 │ 12.95 / 13.40 ±0.68 / 14.74 ms │ 13.31 / 13.93 ±0.69 / 14.94 ms │ no change │
│ QQuery 12 │ 17.87 / 18.60 ±0.91 / 20.36 ms │ 18.00 / 18.32 ±0.23 / 18.72 ms │ no change │
│ QQuery 13 │ 39.35 / 40.09 ±1.19 / 42.47 ms │ 39.08 / 39.48 ±0.31 / 39.94 ms │ no change │
│ QQuery 14 │ 24.08 / 24.32 ±0.19 / 24.59 ms │ 24.10 / 24.30 ±0.15 / 24.51 ms │ no change │
│ QQuery 15 │ 30.76 / 31.77 ±0.70 / 32.60 ms │ 30.80 / 32.00 ±1.48 / 34.68 ms │ no change │
│ QQuery 16 │ 13.41 / 13.56 ±0.13 / 13.70 ms │ 13.30 / 13.53 ±0.19 / 13.87 ms │ no change │
│ QQuery 17 │ 74.13 / 74.83 ±1.13 / 77.08 ms │ 75.16 / 75.68 ±0.77 / 77.18 ms │ no change │
│ QQuery 18 │ 75.40 / 77.97 ±2.94 / 83.64 ms │ 75.34 / 77.00 ±2.20 / 81.31 ms │ no change │
│ QQuery 19 │ 31.55 / 33.65 ±1.50 / 35.56 ms │ 31.98 / 33.56 ±1.92 / 36.88 ms │ no change │
│ QQuery 20 │ 31.54 / 33.19 ±1.59 / 36.00 ms │ 31.63 / 32.39 ±0.54 / 33.01 ms │ no change │
│ QQuery 21 │ 55.70 / 56.47 ±0.62 / 57.55 ms │ 55.77 / 57.06 ±1.01 / 58.15 ms │ no change │
│ QQuery 22 │ 13.53 / 13.78 ±0.40 / 14.58 ms │ 13.48 / 14.07 ±0.82 / 15.69 ms │ no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                │ 762.43ms │
│ Total Time (dictionary-filter)   │ 765.45ms │
│ Average Time (HEAD)              │  34.66ms │
│ Average Time (dictionary-filter) │  34.79ms │
│ Queries Faster                   │        0 │
│ Queries Slower                   │        0 │
│ Queries with No Change           │       22 │
│ Queries with Failure             │        0 │
└──────────────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 2.3 GiB
Avg memory 688.5 MiB
CPU user 21.7s
CPU sys 1.7s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 2.4 GiB
Avg memory 695.8 MiB
CPU user 21.9s
CPU sys 1.7s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

Comparing dictionary-filter (07acfb1) to 6a9a129 (merge-base) diff

Run configuration
run benchmark tpcds
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
Details

Comparing HEAD and dictionary-filter
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query     ┃       HEAD ┃ dictionary-filter ┃       Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 1  │    5.40 ms │           5.16 ms │    no change │
│ QQuery 2  │   81.12 ms │          78.82 ms │    no change │
│ QQuery 3  │   29.33 ms │          28.04 ms │    no change │
│ QQuery 4  │  598.23 ms │         589.01 ms │    no change │
│ QQuery 5  │   49.11 ms │          48.66 ms │    no change │
│ QQuery 6  │   33.76 ms │          33.73 ms │    no change │
│ QQuery 7  │   71.30 ms │          70.71 ms │    no change │
│ QQuery 8  │   35.44 ms │          35.16 ms │    no change │
│ QQuery 9  │   50.65 ms │          50.03 ms │    no change │
│ QQuery 10 │   60.49 ms │          59.37 ms │    no change │
│ QQuery 11 │  319.07 ms │         310.34 ms │    no change │
│ QQuery 12 │   27.87 ms │          27.67 ms │    no change │
│ QQuery 13 │  110.42 ms │         110.36 ms │    no change │
│ QQuery 14 │  374.19 ms │         376.01 ms │    no change │
│ QQuery 15 │   50.86 ms │          51.48 ms │    no change │
│ QQuery 16 │    5.91 ms │           5.71 ms │    no change │
│ QQuery 17 │   76.11 ms │          75.66 ms │    no change │
│ QQuery 18 │  101.79 ms │         102.13 ms │    no change │
│ QQuery 19 │   40.45 ms │          40.13 ms │    no change │
│ QQuery 20 │   34.35 ms │          34.30 ms │    no change │
│ QQuery 21 │   16.32 ms │          16.07 ms │    no change │
│ QQuery 22 │   62.76 ms │          61.58 ms │    no change │
│ QQuery 23 │  286.11 ms │         285.58 ms │    no change │
│ QQuery 24 │  186.78 ms │         187.50 ms │    no change │
│ QQuery 25 │  105.23 ms │         104.30 ms │    no change │
│ QQuery 26 │   44.91 ms │          44.61 ms │    no change │
│ QQuery 27 │    5.59 ms │           5.51 ms │    no change │
│ QQuery 28 │   55.62 ms │          59.80 ms │ 1.08x slower │
│ QQuery 29 │   91.37 ms │          91.76 ms │    no change │
│ QQuery 30 │   32.36 ms │          31.24 ms │    no change │
│ QQuery 31 │  106.15 ms │         105.00 ms │    no change │
│ QQuery 32 │   19.11 ms │          19.39 ms │    no change │
│ QQuery 33 │   36.92 ms │          37.20 ms │    no change │
│ QQuery 34 │    9.61 ms │           9.43 ms │    no change │
│ QQuery 35 │   69.80 ms │          69.86 ms │    no change │
│ QQuery 36 │    5.23 ms │           5.27 ms │    no change │
│ QQuery 37 │    6.46 ms │           6.44 ms │    no change │
│ QQuery 38 │   59.01 ms │          59.08 ms │    no change │
│ QQuery 39 │   70.22 ms │          70.90 ms │    no change │
│ QQuery 40 │   22.36 ms │          21.73 ms │    no change │
│ QQuery 41 │   11.74 ms │          11.69 ms │    no change │
│ QQuery 42 │   23.11 ms │          22.90 ms │    no change │
│ QQuery 43 │    4.39 ms │           4.32 ms │    no change │
│ QQuery 44 │    8.14 ms │           7.94 ms │    no change │
│ QQuery 45 │   34.80 ms │          35.34 ms │    no change │
│ QQuery 46 │   10.99 ms │          10.83 ms │    no change │
│ QQuery 47 │  214.63 ms │         212.94 ms │    no change │
│ QQuery 48 │   90.02 ms │          89.19 ms │    no change │
│ QQuery 49 │   68.22 ms │          68.91 ms │    no change │
│ QQuery 50 │   56.55 ms │          56.35 ms │    no change │
│ QQuery 51 │   91.24 ms │          91.56 ms │    no change │
│ QQuery 52 │   23.55 ms │          23.29 ms │    no change │
│ QQuery 53 │   28.58 ms │          28.48 ms │    no change │
│ QQuery 54 │   51.88 ms │          52.08 ms │    no change │
│ QQuery 55 │   23.19 ms │          23.08 ms │    no change │
│ QQuery 56 │   37.57 ms │          37.88 ms │    no change │
│ QQuery 57 │  163.71 ms │         161.67 ms │    no change │
│ QQuery 58 │  103.25 ms │         103.77 ms │    no change │
│ QQuery 59 │  113.69 ms │         112.59 ms │    no change │
│ QQuery 60 │   38.35 ms │          38.38 ms │    no change │
│ QQuery 61 │    9.00 ms │           8.97 ms │    no change │
│ QQuery 62 │   42.11 ms │          42.08 ms │    no change │
│ QQuery 63 │   28.37 ms │          28.34 ms │    no change │
│ QQuery 64 │  345.49 ms │         345.80 ms │    no change │
│ QQuery 65 │  126.19 ms │         127.40 ms │    no change │
│ QQuery 66 │   70.45 ms │          71.29 ms │    no change │
│ QQuery 67 │  238.17 ms │         233.23 ms │    no change │
│ QQuery 68 │   11.22 ms │          11.16 ms │    no change │
│ QQuery 69 │   54.54 ms │          54.72 ms │    no change │
│ QQuery 70 │  101.81 ms │         101.79 ms │    no change │
│ QQuery 71 │   34.11 ms │          36.11 ms │ 1.06x slower │
│ QQuery 72 │ 1514.85 ms │        1514.82 ms │    no change │
│ QQuery 73 │    9.23 ms │           9.28 ms │    no change │
│ QQuery 74 │  174.55 ms │         180.22 ms │    no change │
│ QQuery 75 │  136.47 ms │         136.69 ms │    no change │
│ QQuery 76 │   33.89 ms │          33.55 ms │    no change │
│ QQuery 77 │   57.45 ms │          57.86 ms │    no change │
│ QQuery 78 │  157.31 ms │         155.11 ms │    no change │
│ QQuery 79 │   65.21 ms │          65.06 ms │    no change │
│ QQuery 80 │   92.56 ms │          91.80 ms │    no change │
│ QQuery 81 │   24.76 ms │          24.50 ms │    no change │
│ QQuery 82 │   15.80 ms │          15.92 ms │    no change │
│ QQuery 83 │   31.70 ms │          30.99 ms │    no change │
│ QQuery 84 │   29.02 ms │          28.87 ms │    no change │
│ QQuery 85 │   96.17 ms │          96.55 ms │    no change │
│ QQuery 86 │   24.02 ms │          24.12 ms │    no change │
│ QQuery 87 │   58.66 ms │          59.04 ms │    no change │
│ QQuery 88 │   57.80 ms │          57.51 ms │    no change │
│ QQuery 89 │   34.73 ms │          34.04 ms │    no change │
│ QQuery 90 │   15.60 ms │          15.68 ms │    no change │
│ QQuery 91 │   38.79 ms │          39.02 ms │    no change │
│ QQuery 92 │   27.82 ms │          27.77 ms │    no change │
│ QQuery 93 │   48.15 ms │          47.05 ms │    no change │
│ QQuery 94 │   37.00 ms │          37.12 ms │    no change │
│ QQuery 95 │   76.93 ms │          77.56 ms │    no change │
│ QQuery 96 │   22.95 ms │          23.17 ms │    no change │
│ QQuery 97 │   49.34 ms │          49.73 ms │    no change │
│ QQuery 98 │   41.33 ms │          41.94 ms │    no change │
│ QQuery 99 │   63.79 ms │          63.32 ms │    no change │
└───────────┴────────────┴───────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                │ 8742.78ms │
│ Total Time (dictionary-filter)   │ 8717.12ms │
│ Average Time (HEAD)              │   88.31ms │
│ Average Time (dictionary-filter) │   88.05ms │
│ Queries Faster                   │         0 │
│ Queries Slower                   │         2 │
│ Queries with No Change           │        97 │
│ Queries with Failure             │         0 │
└──────────────────────────────────┴───────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and dictionary-filter
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                   HEAD ┃                     dictionary-filter ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │            5.40 / 6.18 ±0.99 / 8.14 ms │           5.16 / 5.74 ±1.03 / 7.81 ms │ +1.08x faster │
│ QQuery 2  │         81.12 / 81.82 ±0.43 / 82.43 ms │        78.82 / 78.98 ±0.21 / 79.40 ms │     no change │
│ QQuery 3  │         29.33 / 29.76 ±0.28 / 30.08 ms │        28.04 / 28.39 ±0.24 / 28.72 ms │     no change │
│ QQuery 4  │     598.23 / 625.38 ±30.85 / 685.69 ms │     589.01 / 596.18 ±4.60 / 601.08 ms │     no change │
│ QQuery 5  │         49.11 / 49.57 ±0.28 / 49.84 ms │        48.66 / 48.90 ±0.24 / 49.34 ms │     no change │
│ QQuery 6  │         33.76 / 35.96 ±2.91 / 41.72 ms │        33.73 / 34.13 ±0.25 / 34.47 ms │ +1.05x faster │
│ QQuery 7  │         71.30 / 72.05 ±0.95 / 73.89 ms │        70.71 / 71.98 ±1.26 / 74.37 ms │     no change │
│ QQuery 8  │         35.44 / 35.93 ±0.29 / 36.32 ms │        35.16 / 35.42 ±0.20 / 35.73 ms │     no change │
│ QQuery 9  │         50.65 / 52.14 ±1.28 / 54.14 ms │        50.03 / 52.16 ±1.88 / 55.03 ms │     no change │
│ QQuery 10 │         60.49 / 61.92 ±2.50 / 66.91 ms │        59.37 / 60.88 ±2.16 / 65.16 ms │     no change │
│ QQuery 11 │      319.07 / 326.37 ±5.97 / 331.81 ms │     310.34 / 317.67 ±4.43 / 323.12 ms │     no change │
│ QQuery 12 │         27.87 / 29.36 ±2.11 / 33.53 ms │        27.67 / 28.10 ±0.24 / 28.38 ms │     no change │
│ QQuery 13 │      110.42 / 111.54 ±0.60 / 112.16 ms │     110.36 / 112.98 ±3.01 / 118.76 ms │     no change │
│ QQuery 14 │      374.19 / 377.66 ±2.78 / 382.45 ms │     376.01 / 378.52 ±3.82 / 386.05 ms │     no change │
│ QQuery 15 │         50.86 / 51.61 ±0.54 / 52.56 ms │        51.48 / 51.76 ±0.15 / 51.94 ms │     no change │
│ QQuery 16 │            5.91 / 6.16 ±0.25 / 6.63 ms │           5.71 / 5.84 ±0.24 / 6.33 ms │ +1.05x faster │
│ QQuery 17 │         76.11 / 78.47 ±2.45 / 83.03 ms │        75.66 / 76.57 ±0.72 / 77.52 ms │     no change │
│ QQuery 18 │      101.79 / 103.95 ±1.90 / 107.28 ms │     102.13 / 105.58 ±3.32 / 111.47 ms │     no change │
│ QQuery 19 │         40.45 / 40.57 ±0.09 / 40.70 ms │        40.13 / 40.82 ±0.55 / 41.77 ms │     no change │
│ QQuery 20 │         34.35 / 35.17 ±1.27 / 37.70 ms │        34.30 / 34.97 ±0.56 / 35.72 ms │     no change │
│ QQuery 21 │         16.32 / 16.64 ±0.23 / 16.90 ms │        16.07 / 16.24 ±0.19 / 16.58 ms │     no change │
│ QQuery 22 │         62.76 / 63.66 ±0.54 / 64.44 ms │        61.58 / 62.63 ±1.01 / 64.21 ms │     no change │
│ QQuery 23 │      286.11 / 287.88 ±1.50 / 290.31 ms │     285.58 / 287.35 ±3.27 / 293.88 ms │     no change │
│ QQuery 24 │      186.78 / 189.93 ±2.61 / 194.20 ms │     187.50 / 191.10 ±3.17 / 196.29 ms │     no change │
│ QQuery 25 │      105.23 / 106.05 ±0.86 / 107.69 ms │     104.30 / 107.49 ±3.40 / 113.73 ms │     no change │
│ QQuery 26 │         44.91 / 46.20 ±1.36 / 48.83 ms │        44.61 / 45.04 ±0.35 / 45.53 ms │     no change │
│ QQuery 27 │            5.59 / 5.81 ±0.15 / 6.02 ms │           5.51 / 5.67 ±0.22 / 6.10 ms │     no change │
│ QQuery 28 │         55.62 / 58.90 ±2.47 / 61.30 ms │        59.80 / 60.28 ±0.32 / 60.66 ms │     no change │
│ QQuery 29 │         91.37 / 95.02 ±2.88 / 98.81 ms │       91.76 / 95.15 ±3.55 / 101.88 ms │     no change │
│ QQuery 30 │         32.36 / 32.73 ±0.44 / 33.58 ms │        31.24 / 31.87 ±0.40 / 32.42 ms │     no change │
│ QQuery 31 │      106.15 / 106.77 ±0.42 / 107.48 ms │     105.00 / 105.72 ±0.44 / 106.09 ms │     no change │
│ QQuery 32 │         19.11 / 19.32 ±0.36 / 20.03 ms │        19.39 / 19.87 ±0.29 / 20.26 ms │     no change │
│ QQuery 33 │         36.92 / 37.15 ±0.20 / 37.50 ms │        37.20 / 39.02 ±2.68 / 44.32 ms │  1.05x slower │
│ QQuery 34 │          9.61 / 10.96 ±2.12 / 15.18 ms │         9.43 / 10.00 ±0.48 / 10.81 ms │ +1.10x faster │
│ QQuery 35 │         69.80 / 70.16 ±0.24 / 70.37 ms │        69.86 / 70.05 ±0.11 / 70.17 ms │     no change │
│ QQuery 36 │            5.23 / 5.43 ±0.21 / 5.84 ms │           5.27 / 5.43 ±0.22 / 5.87 ms │     no change │
│ QQuery 37 │            6.46 / 6.52 ±0.06 / 6.61 ms │           6.44 / 6.51 ±0.05 / 6.57 ms │     no change │
│ QQuery 38 │         59.01 / 59.66 ±0.63 / 60.71 ms │        59.08 / 59.31 ±0.16 / 59.58 ms │     no change │
│ QQuery 39 │         70.22 / 71.71 ±2.46 / 76.62 ms │        70.90 / 72.25 ±2.26 / 76.74 ms │     no change │
│ QQuery 40 │         22.36 / 23.07 ±0.48 / 23.66 ms │        21.73 / 21.97 ±0.28 / 22.50 ms │     no change │
│ QQuery 41 │         11.74 / 11.95 ±0.30 / 12.55 ms │        11.69 / 11.84 ±0.09 / 11.95 ms │     no change │
│ QQuery 42 │         23.11 / 23.86 ±0.41 / 24.36 ms │        22.90 / 23.11 ±0.19 / 23.42 ms │     no change │
│ QQuery 43 │            4.39 / 4.53 ±0.19 / 4.90 ms │           4.32 / 4.43 ±0.17 / 4.77 ms │     no change │
│ QQuery 44 │            8.14 / 8.30 ±0.13 / 8.47 ms │           7.94 / 8.16 ±0.16 / 8.37 ms │     no change │
│ QQuery 45 │         34.80 / 35.50 ±0.68 / 36.69 ms │        35.34 / 35.92 ±0.52 / 36.70 ms │     no change │
│ QQuery 46 │         10.99 / 11.95 ±1.15 / 14.19 ms │        10.83 / 10.93 ±0.07 / 11.06 ms │ +1.09x faster │
│ QQuery 47 │      214.63 / 220.73 ±5.75 / 230.50 ms │     212.94 / 213.83 ±0.97 / 215.62 ms │     no change │
│ QQuery 48 │         90.02 / 91.65 ±2.62 / 96.82 ms │        89.19 / 91.24 ±1.82 / 94.47 ms │     no change │
│ QQuery 49 │         68.22 / 69.65 ±1.17 / 71.70 ms │        68.91 / 69.78 ±0.72 / 70.65 ms │     no change │
│ QQuery 50 │         56.55 / 57.58 ±0.72 / 58.67 ms │        56.35 / 56.75 ±0.28 / 57.13 ms │     no change │
│ QQuery 51 │        91.24 / 94.63 ±4.05 / 102.39 ms │       91.56 / 94.40 ±3.39 / 100.88 ms │     no change │
│ QQuery 52 │         23.55 / 23.77 ±0.17 / 24.00 ms │        23.29 / 23.82 ±0.27 / 24.09 ms │     no change │
│ QQuery 53 │         28.58 / 28.77 ±0.11 / 28.87 ms │        28.48 / 28.59 ±0.08 / 28.72 ms │     no change │
│ QQuery 54 │         51.88 / 52.87 ±1.18 / 55.14 ms │        52.08 / 52.41 ±0.32 / 53.00 ms │     no change │
│ QQuery 55 │         23.19 / 23.53 ±0.27 / 23.93 ms │        23.08 / 25.16 ±2.57 / 30.15 ms │  1.07x slower │
│ QQuery 56 │         37.57 / 40.49 ±4.39 / 49.23 ms │        37.88 / 38.26 ±0.44 / 39.02 ms │ +1.06x faster │
│ QQuery 57 │      163.71 / 166.06 ±2.18 / 169.71 ms │     161.67 / 165.57 ±3.34 / 171.75 ms │     no change │
│ QQuery 58 │      103.25 / 104.65 ±1.17 / 106.53 ms │     103.77 / 104.94 ±1.14 / 107.10 ms │     no change │
│ QQuery 59 │      113.69 / 114.40 ±0.45 / 114.88 ms │     112.59 / 114.56 ±2.94 / 120.40 ms │     no change │
│ QQuery 60 │         38.35 / 38.67 ±0.40 / 39.44 ms │        38.38 / 39.15 ±0.58 / 39.92 ms │     no change │
│ QQuery 61 │            9.00 / 9.17 ±0.24 / 9.64 ms │           8.97 / 9.15 ±0.19 / 9.46 ms │     no change │
│ QQuery 62 │         42.11 / 42.41 ±0.16 / 42.57 ms │        42.08 / 42.25 ±0.15 / 42.50 ms │     no change │
│ QQuery 63 │         28.37 / 29.32 ±1.09 / 31.44 ms │        28.34 / 28.60 ±0.18 / 28.89 ms │     no change │
│ QQuery 64 │      345.49 / 349.80 ±4.26 / 357.45 ms │     345.80 / 347.98 ±1.67 / 350.69 ms │     no change │
│ QQuery 65 │      126.19 / 131.74 ±5.43 / 141.83 ms │     127.40 / 130.29 ±2.42 / 134.40 ms │     no change │
│ QQuery 66 │         70.45 / 72.00 ±0.94 / 73.03 ms │        71.29 / 72.11 ±0.68 / 73.18 ms │     no change │
│ QQuery 67 │      238.17 / 241.63 ±2.37 / 245.44 ms │     233.23 / 245.05 ±8.05 / 256.93 ms │     no change │
│ QQuery 68 │         11.22 / 11.62 ±0.37 / 12.30 ms │        11.16 / 11.45 ±0.19 / 11.74 ms │     no change │
│ QQuery 69 │         54.54 / 55.90 ±2.37 / 60.63 ms │        54.72 / 56.28 ±1.87 / 59.95 ms │     no change │
│ QQuery 70 │      101.81 / 103.25 ±1.40 / 105.81 ms │     101.79 / 104.33 ±2.28 / 107.85 ms │     no change │
│ QQuery 71 │         34.11 / 34.68 ±0.44 / 35.44 ms │        36.11 / 36.60 ±0.26 / 36.81 ms │  1.06x slower │
│ QQuery 72 │ 1514.85 / 1621.07 ±101.86 / 1752.40 ms │ 1514.82 / 1624.34 ±77.88 / 1729.69 ms │     no change │
│ QQuery 73 │            9.23 / 9.57 ±0.19 / 9.79 ms │           9.28 / 9.52 ±0.24 / 9.94 ms │     no change │
│ QQuery 74 │      174.55 / 182.34 ±6.54 / 193.10 ms │     180.22 / 181.28 ±0.62 / 182.15 ms │     no change │
│ QQuery 75 │      136.47 / 138.64 ±3.18 / 144.92 ms │     136.69 / 138.69 ±2.49 / 143.56 ms │     no change │
│ QQuery 76 │         33.89 / 34.09 ±0.17 / 34.41 ms │        33.55 / 33.92 ±0.34 / 34.44 ms │     no change │
│ QQuery 77 │         57.45 / 58.44 ±0.91 / 59.99 ms │        57.86 / 58.34 ±0.40 / 58.90 ms │     no change │
│ QQuery 78 │      157.31 / 160.46 ±3.81 / 167.63 ms │     155.11 / 158.85 ±2.87 / 162.52 ms │     no change │
│ QQuery 79 │         65.21 / 66.65 ±1.22 / 68.13 ms │        65.06 / 66.84 ±2.00 / 70.35 ms │     no change │
│ QQuery 80 │         92.56 / 93.63 ±1.51 / 96.62 ms │        91.80 / 94.35 ±1.94 / 97.67 ms │     no change │
│ QQuery 81 │         24.76 / 24.95 ±0.13 / 25.16 ms │        24.50 / 24.74 ±0.15 / 24.94 ms │     no change │
│ QQuery 82 │         15.80 / 15.96 ±0.17 / 16.27 ms │        15.92 / 16.18 ±0.18 / 16.42 ms │     no change │
│ QQuery 83 │         31.70 / 31.83 ±0.10 / 31.96 ms │        30.99 / 31.59 ±0.32 / 31.89 ms │     no change │
│ QQuery 84 │         29.02 / 30.61 ±2.31 / 35.21 ms │        28.87 / 30.86 ±2.07 / 34.11 ms │     no change │
│ QQuery 85 │        96.17 / 97.58 ±1.58 / 100.45 ms │        96.55 / 97.68 ±0.86 / 99.16 ms │     no change │
│ QQuery 86 │         24.02 / 24.33 ±0.23 / 24.66 ms │        24.12 / 24.38 ±0.24 / 24.81 ms │     no change │
│ QQuery 87 │         58.66 / 59.06 ±0.31 / 59.45 ms │        59.04 / 59.65 ±0.56 / 60.65 ms │     no change │
│ QQuery 88 │         57.80 / 59.63 ±3.15 / 65.90 ms │        57.51 / 58.21 ±0.55 / 59.20 ms │     no change │
│ QQuery 89 │         34.73 / 35.08 ±0.29 / 35.48 ms │        34.04 / 34.68 ±0.43 / 35.21 ms │     no change │
│ QQuery 90 │         15.60 / 15.78 ±0.24 / 16.25 ms │        15.68 / 15.81 ±0.14 / 16.08 ms │     no change │
│ QQuery 91 │         38.79 / 39.24 ±0.48 / 40.13 ms │        39.02 / 39.34 ±0.20 / 39.62 ms │     no change │
│ QQuery 92 │         27.82 / 28.05 ±0.16 / 28.28 ms │        27.77 / 28.21 ±0.36 / 28.79 ms │     no change │
│ QQuery 93 │         48.15 / 49.84 ±2.00 / 53.68 ms │        47.05 / 49.22 ±1.50 / 51.02 ms │     no change │
│ QQuery 94 │         37.00 / 37.59 ±0.32 / 37.89 ms │        37.12 / 37.61 ±0.49 / 38.50 ms │     no change │
│ QQuery 95 │         76.93 / 77.79 ±0.64 / 78.61 ms │        77.56 / 78.27 ±0.77 / 79.22 ms │     no change │
│ QQuery 96 │         22.95 / 23.15 ±0.20 / 23.48 ms │        23.17 / 23.48 ±0.22 / 23.84 ms │     no change │
│ QQuery 97 │         49.34 / 50.29 ±0.77 / 51.42 ms │        49.73 / 51.51 ±2.03 / 55.18 ms │     no change │
│ QQuery 98 │         41.33 / 42.85 ±1.11 / 44.69 ms │        41.94 / 42.92 ±0.90 / 44.55 ms │     no change │
│ QQuery 99 │         63.79 / 64.02 ±0.23 / 64.45 ms │        63.32 / 63.73 ±0.23 / 63.93 ms │     no change │
└───────────┴────────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                │ 9002.75ms │
│ Total Time (dictionary-filter)   │ 8949.68ms │
│ Average Time (HEAD)              │   90.94ms │
│ Average Time (dictionary-filter) │   90.40ms │
│ Queries Faster                   │         6 │
│ Queries Slower                   │         3 │
│ Queries with No Change           │        90 │
│ Queries with Failure             │         0 │
└──────────────────────────────────┴───────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 50.0s
Peak memory 2.1 GiB
Avg memory 1.4 GiB
CPU user 186.6s
CPU sys 5.3s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 50.0s
Peak memory 2.2 GiB
Avg memory 1.5 GiB
CPU user 181.2s
CPU sys 5.3s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

Comparing dictionary-filter (07acfb1) to 6a9a129 (merge-base) diff

Run configuration
run benchmark clickbench_partitioned
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
Details

Comparing HEAD and dictionary-filter
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query     ┃       HEAD ┃ dictionary-filter ┃       Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 0  │    1.20 ms │           1.23 ms │    no change │
│ QQuery 1  │   11.51 ms │          11.57 ms │    no change │
│ QQuery 2  │   34.89 ms │          34.82 ms │    no change │
│ QQuery 3  │   30.88 ms │          30.73 ms │    no change │
│ QQuery 4  │  233.06 ms │         238.60 ms │    no change │
│ QQuery 5  │  268.76 ms │         272.50 ms │    no change │
│ QQuery 6  │    1.25 ms │           1.22 ms │    no change │
│ QQuery 7  │   12.50 ms │          12.89 ms │    no change │
│ QQuery 8  │  323.37 ms │         324.05 ms │    no change │
│ QQuery 9  │  453.52 ms │         462.75 ms │    no change │
│ QQuery 10 │   63.57 ms │          63.96 ms │    no change │
│ QQuery 11 │   74.72 ms │          74.76 ms │    no change │
│ QQuery 12 │  261.22 ms │         263.33 ms │    no change │
│ QQuery 13 │  368.69 ms │         368.30 ms │    no change │
│ QQuery 14 │  275.80 ms │         277.45 ms │    no change │
│ QQuery 15 │  281.72 ms │         281.13 ms │    no change │
│ QQuery 16 │  608.51 ms │         612.49 ms │    no change │
│ QQuery 17 │  611.66 ms │         620.04 ms │    no change │
│ QQuery 18 │ 1198.49 ms │        1192.26 ms │    no change │
│ QQuery 19 │   27.57 ms │          27.40 ms │    no change │
│ QQuery 20 │  517.89 ms │         517.07 ms │    no change │
│ QQuery 21 │  511.61 ms │         508.95 ms │    no change │
│ QQuery 22 │  975.52 ms │         971.14 ms │    no change │
│ QQuery 23 │ 3020.37 ms │        3062.35 ms │    no change │
│ QQuery 24 │   39.93 ms │          40.08 ms │    no change │
│ QQuery 25 │  104.66 ms │         105.12 ms │    no change │
│ QQuery 26 │   40.56 ms │          40.62 ms │    no change │
│ QQuery 27 │  510.93 ms │         505.98 ms │    no change │
│ QQuery 28 │ 2859.04 ms │        2872.77 ms │    no change │
│ QQuery 29 │   37.66 ms │          37.82 ms │    no change │
│ QQuery 30 │  303.28 ms │         298.73 ms │    no change │
│ QQuery 31 │  284.79 ms │         281.17 ms │    no change │
│ QQuery 32 │  937.86 ms │         938.92 ms │    no change │
│ QQuery 33 │ 1416.91 ms │        1439.68 ms │    no change │
│ QQuery 34 │ 1474.10 ms │        1456.21 ms │    no change │
│ QQuery 35 │  279.67 ms │         291.80 ms │    no change │
│ QQuery 36 │   63.43 ms │          68.20 ms │ 1.08x slower │
│ QQuery 37 │   34.26 ms │          34.76 ms │    no change │
│ QQuery 38 │   40.00 ms │          42.05 ms │ 1.05x slower │
│ QQuery 39 │  140.13 ms │         141.65 ms │    no change │
│ QQuery 40 │   13.56 ms │          13.84 ms │    no change │
│ QQuery 41 │   13.00 ms │          12.97 ms │    no change │
│ QQuery 42 │   12.63 ms │          12.76 ms │    no change │
└───────────┴────────────┴───────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                │ 18774.67ms │
│ Total Time (dictionary-filter)   │ 18866.09ms │
│ Average Time (HEAD)              │   436.62ms │
│ Average Time (dictionary-filter) │   438.75ms │
│ Queries Faster                   │          0 │
│ Queries Slower                   │          2 │
│ Queries with No Change           │         41 │
│ Queries with Failure             │          0 │
└──────────────────────────────────┴────────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and dictionary-filter
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃                     dictionary-filter ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │           1.20 / 1.82 ±1.12 / 4.05 ms │           1.23 / 1.83 ±1.10 / 4.02 ms │     no change │
│ QQuery 1  │        11.51 / 11.60 ±0.11 / 11.81 ms │        11.57 / 11.66 ±0.07 / 11.75 ms │     no change │
│ QQuery 2  │        34.89 / 35.37 ±0.40 / 36.06 ms │        34.82 / 35.25 ±0.37 / 35.88 ms │     no change │
│ QQuery 3  │        30.88 / 31.64 ±0.59 / 32.41 ms │        30.73 / 31.26 ±0.41 / 31.93 ms │     no change │
│ QQuery 4  │     233.06 / 237.88 ±2.64 / 240.63 ms │     238.60 / 241.52 ±2.27 / 245.50 ms │     no change │
│ QQuery 5  │     268.76 / 275.34 ±3.39 / 277.73 ms │     272.50 / 274.88 ±1.43 / 275.98 ms │     no change │
│ QQuery 6  │           1.25 / 1.40 ±0.25 / 1.89 ms │           1.22 / 1.39 ±0.25 / 1.87 ms │     no change │
│ QQuery 7  │        12.50 / 12.74 ±0.14 / 12.87 ms │        12.89 / 12.95 ±0.04 / 13.01 ms │     no change │
│ QQuery 8  │     323.37 / 328.50 ±4.25 / 335.92 ms │     324.05 / 331.79 ±9.14 / 347.71 ms │     no change │
│ QQuery 9  │     453.52 / 464.01 ±8.25 / 476.74 ms │    462.75 / 472.09 ±11.51 / 493.56 ms │     no change │
│ QQuery 10 │        63.57 / 65.05 ±1.27 / 66.74 ms │        63.96 / 64.69 ±0.53 / 65.51 ms │     no change │
│ QQuery 11 │        74.72 / 75.64 ±1.00 / 77.48 ms │        74.76 / 76.57 ±1.18 / 77.98 ms │     no change │
│ QQuery 12 │     261.22 / 267.44 ±4.50 / 272.96 ms │     263.33 / 268.53 ±3.84 / 274.23 ms │     no change │
│ QQuery 13 │     368.69 / 377.77 ±9.68 / 393.07 ms │    368.30 / 386.24 ±10.91 / 400.44 ms │     no change │
│ QQuery 14 │     275.80 / 281.33 ±5.17 / 291.11 ms │     277.45 / 283.87 ±4.14 / 288.92 ms │     no change │
│ QQuery 15 │     281.72 / 287.71 ±5.15 / 297.00 ms │     281.13 / 289.09 ±6.70 / 298.90 ms │     no change │
│ QQuery 16 │     608.51 / 613.31 ±3.92 / 618.93 ms │     612.49 / 621.44 ±7.90 / 635.63 ms │     no change │
│ QQuery 17 │     611.66 / 621.27 ±7.53 / 634.65 ms │     620.04 / 626.15 ±5.28 / 635.46 ms │     no change │
│ QQuery 18 │ 1198.49 / 1229.10 ±15.86 / 1242.74 ms │ 1192.26 / 1227.17 ±20.79 / 1254.10 ms │     no change │
│ QQuery 19 │        27.57 / 33.20 ±8.12 / 49.25 ms │        27.40 / 30.16 ±4.71 / 39.57 ms │ +1.10x faster │
│ QQuery 20 │     517.89 / 524.82 ±7.98 / 540.36 ms │    517.07 / 531.32 ±11.79 / 549.91 ms │     no change │
│ QQuery 21 │     511.61 / 513.11 ±2.17 / 517.41 ms │     508.95 / 518.78 ±6.76 / 526.09 ms │     no change │
│ QQuery 22 │     975.52 / 981.20 ±5.68 / 988.40 ms │     971.14 / 984.75 ±8.53 / 992.26 ms │     no change │
│ QQuery 23 │ 3020.37 / 3077.21 ±47.76 / 3140.86 ms │ 3062.35 / 3111.08 ±25.54 / 3136.60 ms │     no change │
│ QQuery 24 │        39.93 / 41.42 ±1.38 / 43.97 ms │        40.08 / 40.41 ±0.24 / 40.65 ms │     no change │
│ QQuery 25 │     104.66 / 108.19 ±2.06 / 110.17 ms │    105.12 / 118.68 ±14.86 / 140.77 ms │  1.10x slower │
│ QQuery 26 │        40.56 / 41.29 ±0.78 / 42.73 ms │        40.62 / 41.35 ±0.83 / 42.87 ms │     no change │
│ QQuery 27 │     510.93 / 518.31 ±6.84 / 530.45 ms │     505.98 / 516.85 ±8.83 / 531.76 ms │     no change │
│ QQuery 28 │ 2859.04 / 2884.51 ±20.37 / 2920.53 ms │  2872.77 / 2885.67 ±9.31 / 2897.88 ms │     no change │
│ QQuery 29 │      37.66 / 51.74 ±26.25 / 104.17 ms │        37.82 / 45.15 ±8.87 / 58.68 ms │ +1.15x faster │
│ QQuery 30 │    303.28 / 315.12 ±14.26 / 339.86 ms │     298.73 / 312.49 ±9.11 / 326.18 ms │     no change │
│ QQuery 31 │     284.79 / 292.60 ±9.81 / 311.19 ms │     281.17 / 288.49 ±8.54 / 304.02 ms │     no change │
│ QQuery 32 │   937.86 / 973.34 ±45.31 / 1060.78 ms │   938.92 / 966.59 ±34.51 / 1031.09 ms │     no change │
│ QQuery 33 │ 1416.91 / 1494.46 ±72.69 / 1630.97 ms │ 1439.68 / 1465.10 ±15.81 / 1480.02 ms │     no change │
│ QQuery 34 │  1474.10 / 1483.77 ±8.79 / 1498.88 ms │ 1456.21 / 1478.10 ±20.81 / 1513.10 ms │     no change │
│ QQuery 35 │    279.67 / 308.33 ±36.57 / 379.47 ms │    291.80 / 329.27 ±39.80 / 394.30 ms │  1.07x slower │
│ QQuery 36 │        63.43 / 72.87 ±5.13 / 78.26 ms │        68.20 / 75.45 ±6.32 / 87.10 ms │     no change │
│ QQuery 37 │        34.26 / 35.70 ±1.14 / 37.14 ms │        34.76 / 37.53 ±2.61 / 41.26 ms │  1.05x slower │
│ QQuery 38 │        40.00 / 42.12 ±1.52 / 44.72 ms │        42.05 / 43.93 ±1.17 / 45.57 ms │     no change │
│ QQuery 39 │     140.13 / 148.15 ±5.99 / 156.25 ms │     141.65 / 151.71 ±8.57 / 167.31 ms │     no change │
│ QQuery 40 │        13.56 / 14.03 ±0.38 / 14.59 ms │        13.84 / 15.89 ±2.48 / 20.68 ms │  1.13x slower │
│ QQuery 41 │        13.00 / 13.10 ±0.13 / 13.35 ms │        12.97 / 14.00 ±1.28 / 16.40 ms │  1.07x slower │
│ QQuery 42 │        12.63 / 13.61 ±1.71 / 17.03 ms │        12.76 / 16.44 ±7.12 / 30.68 ms │  1.21x slower │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                │ 19201.15ms │
│ Total Time (dictionary-filter)   │ 19277.56ms │
│ Average Time (HEAD)              │   446.54ms │
│ Average Time (dictionary-filter) │   448.32ms │
│ Queries Faster                   │          2 │
│ Queries Slower                   │          6 │
│ Queries with No Change           │         35 │
│ Queries with Failure             │          0 │
└──────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 100.0s
Peak memory 11.3 GiB
Avg memory 4.2 GiB
CPU user 985.6s
CPU sys 69.7s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 100.0s
Peak memory 11.6 GiB
Avg memory 4.6 GiB
CPU user 983.9s
CPU sys 71.2s
Peak spill 0 B

File an issue against this benchmark runner

@adriangb

adriangb commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

There seems to be no impact on the standard benchmarks. It might be worth thinking about how we're going to measure the perf improvement.

@alamb

alamb commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Thank you @DarkWanderer -- this is neat

this is a pretty massive PR. I think we'll need help to evaluate it (like maybe a clear, CONCISE, write up / description / design of what the proposal is, what types of queries it will help with, etc)

I especially worry (without looking at the code) that this will just be more code to maintain and like Adrian observes not provide widely applicable real-world improvemetns

@DarkWanderer

DarkWanderer commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Sure. The optimization specifically does the following:

  • Checks if any of the filters are of matching shape - =, NOT IN, IN
  • For these filters, checks statistics to see if row groups for this column are "pure dictionary" (not dictionary+PLAIN fallback)
  • If there are, fetch dictionaries for this column and use them to prune row groups where criterion is unsatisfiable

This is geared toward needle-in-haystack queries in data hosted on S3, with the following idea:

  • If you have 1000 row groups and 5% FP Bloom Filter, you will either incur 50x billed read operations, or 20x read amplification (if whole file is read)
  • With this optimization, only needed row group is read

The benchmark run did not show improvement because the option is opt-in - because in some cases it produces small regression due to dictionary check overhead.

I leave it up to you to judge usefulness of this option @alamb @adriangb

P.S. One more piece of context - this work comes out of my previous attempts to utilize DataFusion as a query engine for Tempo. While generally DataFusion was orders of magnitude faster, a few scenarios on observability data - owing specifically to dictionary-based pruning - still had Tempo in the lead. I'm sure there is a better way of implementing this technique than my simplistic attempt

@github-actions
github-actions Bot marked this pull request as draft November 17, 2026 01:15
@github-actions

Copy link
Copy Markdown

Marked as draft after 14 days without activity: merge conflicts.

Please address these items and mark Ready for review when ready.

@adriangb

adriangb commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

@DarkWanderer @alamb I wonder if this couldn’t fit better inside of arrow-rs? Or as some sort of option to tell arrow-rs how to do the reads? Or would it make sense to do this only as part of the row filter machinery (maybe it is already, I haven’t checked the code)?

This certainly seems like the right idea in principle, but we need to make sure it works in practice.

in some cases it produces small regression due to dictionary check overhead

could you elaborate a bit? maybe we can help resolve this.

This is geared toward needle-in-haystack queries in data hosted on S3

fwiw we also have a benchmark mode to simulate s3 like latencies. we can run those if you think it might be an improvement. surely some of the standard benchmarks have needle in haystack type queries?

DarkWanderer and others added 6 commits November 17, 2026 19:40
Add the `datafusion.execution.parquet.dictionary_filter_on_read` option
(off by default). When enabled, the dictionary page of a fully
dictionary-encoded BYTE_ARRAY column chunk is read as the exact set of the
row group's distinct values, so IN/=/NOT IN/!= predicates prune it exactly.
Add the `row_groups_pruned_dictionary` metric and the proto field for the
option, plus criterion benchmarks and sqllogictest coverage.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012oZ19JVxvTCWQKRoQnYpSR
…sion dictionary_filter_on_read

DictionaryStatistics::insert now checks the chunk is fully dictionary-encoded itself, and the opener only reads pages passing eligible_dictionary_page (offset range, size bound), so soundness no longer relies on callers.
The opener prunes each row group as its dictionary read completes (4 reads in flight per file) so decoded values are released early; reader, read and decode failures are optional and counted in predicate_evaluation_errors.
Row groups with nothing to read or already fully matched by statistics are skipped, and still counted as matched in row_groups_pruned_dictionary.
Scans planned via ParquetFormat use the current session dictionary_filter_on_read instead of the value captured at table creation; config docs, configs.md, information_schema.slt and slt comments say so.
The end-to-end bench gains a throttled object-store variant (BENCH_GET_LATENCY_MS) and a query with no dictionary candidate.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012oZ19JVxvTCWQKRoQnYpSR
…ueries

Remove the two criterion benchmarks that generated their own data. Add a
clickbench_needle bench.sh target: point lookups on hits_partitioned of
string values stored in few row groups, which min/max statistics cannot
prune, plus a control value present in most row groups.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012oZ19LZ2VUzwtQDbkQDb4XT
A `!=` or `NOT IN` predicate prunes a row group only when every value in
it is excluded. When the column chunk's min/max statistics already show a
value outside the excluded set, its dictionary cannot prune the row
group, so the read is skipped. This removes the extra object store GETs
for filters such as ClickBench's `<> ''`.

Inexact bounds are treated as truncated: a minimum as a prefix of the
true minimum, a maximum as shorter than the true maximum. Readers report
bounds from writers that predate the exactness flags as inexact.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012oZ19LDPpsfabaCZBZHoDu
Turns on dictionary-based row group pruning by default so that benchmark
runs against this branch compare it with main without extra settings.

Tests that relied on the old default now set the option explicitly, and
the expected EXPLAIN ANALYZE output of a join probe scan reflects the
dictionary stage running.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012oZ19LDPpsfabaCZBZHoDu
@github-actions github-actions Bot removed the auto detected api change Auto detected API change label Nov 18, 2026
@DarkWanderer

DarkWanderer commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

@adriangb this change is specifically in row group filter machinery, so I don't see a way to put it into arrow-rs. I have dug more and managed to squeeze more performance - by cross-checking the IN and NOT IN against the min/max statistics and avoiding the extra fetch where it would not be useful - but regressions are still visible in many places.

While testing, I found that my change in arrow-rs is not backward compatible with ClickBench data. Fix.

Below is Claude-generated benchmark report with the locally applied patch. needle is an illustrative test case over ClickBench data - which demonstrates the win the most. Simulated S3 results are primarily driven by noise in the random latency.


Overview Each query runs with `datafusion.execution.parquet.dictionary_filter_on_read` off, then on, in fresh `dfbench` processes on the same VM. Times are medians of the timed iterations; the first iteration of each process is dropped. Change is on / off − 1, so negative is faster. Every query returns the same number of rows in both modes.
Code this PR at 28dceb388, with arrow-rs 60.1.0 plus a fix that accepts PLAIN_DICTIONARY dictionary pages (the ClickBench files use them)
Machine GCP c2d-standard-8 Spot VM (AMD EPYC 7B13, 8 vCPUs, 32 GB); target_partitions = 8
Local data on the VM's disk; 5 iterations per process
Simulated S3 dfbench --simulate-latency: GET first-byte latency 19–230 ms, 90 MB/s per connection, 128 connections; 4 iterations per process
Rounds 3 off/on pairs per query for TPC-H, TPC-DS and needle on simulated S3, and for needle locally; 1 otherwise
Datasets TPC-H SF1, TPC-DS SF1, IMDB, ClickBench hits_partitioned (100 files)

Totals

Suite Local Simulated S3
TPC-H +0.2% +6.8%
TPC-DS +0.6% +2.8%
IMDB (Join Order Benchmark) +1.3% +4.9%
ClickBench −0.9% −0.8%
ClickBench with filter pushdown −0.7% −0.9%
ClickBench needle queries −56.5% −51.1%
ClickBench needle queries with filter pushdown −4.7% −8.8%

Per query

TPC-H: local +0.2% overall, no query moves by 10% or more; simulated S3 +6.8%: Q19 +60%, Q11 +36%, five more +11% to +18%

Local (4 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q1 116.9 117.0 +0.1%
Q2 31.6 31.3 −1.2%
Q3 70.2 70.9 +1.0%
Q4 40.4 39.6 −2.0%
Q5 81.9 80.5 −1.7%
Q6 36.1 36.2 +0.4%
Q7 110.6 109.9 −0.6%
Q8 93.2 93.6 +0.5%
Q9 124.6 124.3 −0.2%
Q10 88.0 89.8 +2.0%
Q11 24.9 24.5 −1.5%
Q12 45.3 48.5 +7.2%
Q13 82.8 82.3 −0.6%
Q14 55.8 54.4 −2.5%
Q15 82.6 84.8 +2.7%
Q16 23.2 23.6 +1.8%
Q17 165.3 161.7 −2.1%
Q18 111.7 106.5 −4.7%
Q19 78.0 80.3 +2.9%
Q20 72.3 73.6 +1.8%
Q21 132.5 136.3 +2.9%
Q22 23.5 24.8 +5.4%
Total 1691.3 1694.4 +0.2%

Simulated S3 (9 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q1 776.9 802.6 +3.3%
Q2 974.0 874.4 −10.2%
Q3 1316.4 1382.5 +5.0%
Q4 1228.9 1182.2 −3.8%
Q5 1289.9 1310.4 +1.6%
Q6 754.9 692.2 −8.3%
Q7 1266.7 1492.1 +17.8%
Q8 1424.1 1606.9 +12.8%
Q9 1545.4 1676.5 +8.5%
Q10 1312.9 1543.2 +17.5%
Q11 802.5 1093.7 +36.3%
Q12 1263.0 1462.4 +15.8%
Q13 555.1 562.4 +1.3%
Q14 1046.2 1006.1 −3.8%
Q15 1635.2 1560.8 −4.6%
Q16 484.1 514.6 +6.3%
Q17 1628.1 1809.8 +11.2%
Q18 1743.5 1738.6 −0.3%
Q19 962.5 1542.5 +60.3%
Q20 1225.6 1188.0 −3.1%
Q21 2802.2 2866.9 +2.3%
Q22 615.5 569.0 −7.6%
Total 26653.6 28478.0 +6.8%
TPC-DS: local +0.6% overall, short queries vary up to ±25% either way; simulated S3 +2.8%: Q41 +148%, Q26 +74%, Q37 +70%, 27 more +10% to +51%, 17 queries −10% to −27%

Local (4 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q1 6.3 6.7 +6.0%
Q2 106.1 101.0 −4.7%
Q3 43.1 43.6 +1.3%
Q4 591.4 594.9 +0.6%
Q5 71.7 72.4 +1.0%
Q6 46.3 45.7 −1.4%
Q7 96.6 99.5 +3.0%
Q8 46.8 55.1 +17.8%
Q9 137.1 136.2 −0.6%
Q10 72.9 74.6 +2.2%
Q11 336.1 347.0 +3.2%
Q12 35.6 36.6 +2.9%
Q13 152.2 154.4 +1.5%
Q14 657.7 679.4 +3.3%
Q15 70.5 58.5 −17.1%
Q16 6.5 6.6 +1.8%
Q17 110.6 103.8 −6.1%
Q18 133.5 131.1 −1.9%
Q19 59.7 63.3 +6.0%
Q20 44.3 44.1 −0.5%
Q21 35.0 33.6 −3.8%
Q22 185.0 181.8 −1.7%
Q23 510.0 500.0 −2.0%
Q24 271.9 280.9 +3.3%
Q25 139.0 141.2 +1.6%
Q26 55.8 56.2 +0.8%
Q27 8.4 6.4 −23.9%
Q28 147.8 146.8 −0.7%
Q29 131.8 131.0 −0.6%
Q30 38.0 38.3 +0.7%
Q31 140.3 147.1 +4.9%
Q32 24.6 25.4 +3.2%
Q33 55.5 56.1 +1.1%
Q34 6.6 6.8 +3.0%
Q35 89.3 90.0 +0.8%
Q36 7.2 6.6 −8.1%
Q37 9.6 9.1 −5.2%
Q38 83.3 82.6 −0.9%
Q39 128.0 132.6 +3.6%
Q40 30.2 29.0 −3.8%
Q41 17.5 17.5 +0.2%
Q42 34.2 30.5 −10.6%
Q43 5.8 5.5 −5.4%
Q44 7.1 7.3 +4.0%
Q45 40.7 42.1 +3.3%
Q46 15.2 15.2 +0.1%
Q47 292.1 305.8 +4.7%
Q48 117.2 117.4 +0.2%
Q49 102.5 101.5 −1.0%
Q50 75.9 80.0 +5.4%
Q51 140.1 147.8 +5.5%
Q52 35.0 30.5 −12.8%
Q53 44.8 39.9 −11.0%
Q54 64.5 68.8 +6.7%
Q55 39.0 38.7 −0.8%
Q56 58.2 56.4 −3.1%
Q57 204.9 210.0 +2.5%
Q58 123.5 130.7 +5.8%
Q59 157.6 151.5 −3.9%
Q60 60.0 61.7 +2.9%
Q61 9.9 10.0 +0.9%
Q62 50.5 51.6 +2.1%
Q63 49.9 40.6 −18.7%
Q64 458.1 481.3 +5.1%
Q65 93.6 100.9 +7.8%
Q66 90.4 89.6 −1.0%
Q67 334.7 322.9 −3.5%
Q68 6.7 6.9 +2.4%
Q69 71.5 70.8 −0.9%
Q70 123.6 128.2 +3.7%
Q71 54.2 56.2 +3.7%
Q72 4161.8 4209.4 +1.1%
Q73 6.5 6.0 −7.7%
Q74 212.4 222.0 +4.5%
Q75 190.4 188.4 −1.0%
Q76 54.3 47.0 −13.6%
Q77 81.0 87.9 +8.5%
Q78 378.9 354.3 −6.5%
Q79 88.1 88.8 +0.8%
Q80 142.2 144.1 +1.4%
Q81 30.5 32.1 +5.2%
Q82 30.0 29.8 −0.5%
Q83 38.2 37.8 −1.0%
Q84 32.9 33.5 +1.8%
Q85 125.9 122.5 −2.7%
Q86 31.0 31.5 +1.5%
Q87 75.9 74.7 −1.5%
Q88 132.7 133.3 +0.4%
Q89 54.0 54.8 +1.4%
Q90 21.0 20.4 −2.8%
Q91 60.9 48.0 −21.2%
Q92 38.3 37.5 −2.0%
Q93 74.2 75.6 +2.0%
Q94 47.1 46.2 −1.9%
Q95 113.5 112.8 −0.6%
Q96 38.9 32.6 −16.4%
Q97 77.9 73.0 −6.4%
Q98 56.8 57.7 +1.6%
Q99 76.3 77.2 +1.2%
Total 14373.1 14452.5 +0.6%

Simulated S3 (9 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q1 29.9 26.3 −11.9%
Q2 587.6 612.1 +4.2%
Q3 308.7 281.3 −8.9%
Q4 1615.0 1578.4 −2.3%
Q5 441.6 441.3 −0.1%
Q6 446.6 587.2 +31.5%
Q7 439.0 645.8 +47.1%
Q8 514.0 547.0 +6.4%
Q9 654.7 599.4 −8.5%
Q10 622.2 710.1 +14.1%
Q11 1024.6 920.0 −10.2%
Q12 309.4 274.2 −11.4%
Q13 630.0 951.4 +51.0%
Q14 3630.5 3506.3 −3.4%
Q15 375.7 385.9 +2.7%
Q16 25.1 26.2 +4.7%
Q17 773.3 739.6 −4.4%
Q18 580.8 748.1 +28.8%
Q19 544.7 464.8 −14.7%
Q20 240.5 356.3 +48.2%
Q21 491.2 559.3 +13.9%
Q22 518.8 484.3 −6.6%
Q23 2282.7 2210.7 −3.2%
Q24 1781.6 1879.1 +5.5%
Q25 879.4 788.5 −10.3%
Q26 363.2 632.0 +74.0%
Q27 25.2 24.7 −1.8%
Q28 347.6 324.4 −6.7%
Q29 820.1 743.0 −9.4%
Q30 484.4 456.9 −5.7%
Q31 1349.0 1451.7 +7.6%
Q32 405.0 405.8 +0.2%
Q33 439.7 585.4 +33.1%
Q34 30.1 27.3 −9.5%
Q35 701.3 770.3 +9.8%
Q36 27.9 30.5 +9.4%
Q37 87.1 147.7 +69.7%
Q38 518.6 550.6 +6.2%
Q39 1691.4 1925.1 +13.8%
Q40 363.8 375.6 +3.2%
Q41 155.6 386.4 +148.3%
Q42 356.5 291.2 −18.3%
Q43 21.0 24.5 +16.5%
Q44 43.9 42.7 −2.6%
Q45 526.4 383.4 −27.2%
Q46 217.5 243.2 +11.8%
Q47 1268.8 1223.7 −3.6%
Q48 548.3 782.6 +42.7%
Q49 436.3 481.8 +10.4%
Q50 555.1 542.6 −2.3%
Q51 437.6 497.3 +13.6%
Q52 337.9 348.8 +3.2%
Q53 357.9 444.0 +24.0%
Q54 743.6 832.8 +12.0%
Q55 289.6 318.0 +9.8%
Q56 445.1 439.8 −1.2%
Q57 1186.9 1108.0 −6.6%
Q58 1229.7 990.1 −19.5%
Q59 930.6 829.9 −10.8%
Q60 494.3 454.6 −8.0%
Q61 47.7 47.4 −0.7%
Q62 469.6 342.6 −27.1%
Q63 290.4 420.0 +44.6%
Q64 2836.4 2754.5 −2.9%
Q65 623.2 700.3 +12.4%
Q66 488.3 582.9 +19.4%
Q67 669.7 576.6 −13.9%
Q68 31.4 29.6 −5.5%
Q69 555.1 672.8 +21.2%
Q70 700.4 633.4 −9.6%
Q71 418.2 452.8 +8.3%
Q72 4652.1 4559.5 −2.0%
Q73 30.0 26.5 −11.7%
Q74 915.1 1024.0 +11.9%
Q75 960.5 948.3 −1.3%
Q76 407.3 431.0 +5.8%
Q77 619.1 578.7 −6.5%
Q78 1002.3 1009.9 +0.8%
Q79 446.7 367.6 −17.7%
Q80 696.8 728.5 +4.5%
Q81 421.6 433.4 +2.8%
Q82 633.0 506.5 −20.0%
Q83 641.6 664.3 +3.5%
Q84 340.4 337.4 −0.9%
Q85 797.7 961.7 +20.6%
Q86 245.4 259.9 +5.9%
Q87 478.3 542.2 +13.3%
Q88 541.1 585.2 +8.2%
Q89 368.7 323.5 −12.3%
Q90 296.0 341.6 +15.4%
Q91 594.0 741.4 +24.8%
Q92 352.6 381.2 +8.1%
Q93 537.3 536.6 −0.1%
Q94 460.5 464.3 +0.8%
Q95 715.4 737.6 +3.1%
Q96 310.5 343.3 +10.6%
Q97 504.7 371.1 −26.5%
Q98 299.2 367.9 +23.0%
Q99 570.7 508.3 −10.9%
Total 63953.6 65734.3 +2.8%
IMDB (Join Order Benchmark): local +1.3% overall, six queries +10% to +14%; simulated S3 +4.9%: Q5 +44%, Q15 +36%, 38 more +10% to +30%, six queries −11% to −21%

Local (4 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q1 134.5 125.0 −7.0%
Q2 118.4 115.3 −2.6%
Q3 108.3 104.3 −3.7%
Q4 120.4 122.9 +2.1%
Q5 116.0 113.3 −2.3%
Q6 109.5 110.9 +1.3%
Q7 41.1 42.7 +4.0%
Q8 133.2 133.3 +0.1%
Q9 369.5 374.2 +1.3%
Q10 336.2 310.2 −7.7%
Q11 398.5 397.1 −0.4%
Q12 151.5 147.7 −2.5%
Q13 124.2 124.9 +0.6%
Q14 160.6 161.3 +0.4%
Q15 87.7 92.8 +5.9%
Q16 80.2 85.5 +6.6%
Q17 419.1 420.7 +0.4%
Q18 608.7 591.1 −2.9%
Q19 663.8 641.0 −3.4%
Q20 593.7 613.4 +3.3%
Q21 712.8 695.7 −2.4%
Q22 627.7 635.4 +1.2%
Q23 1206.9 1131.3 −6.3%
Q24 376.5 376.5 −0.0%
Q25 364.7 358.6 −1.7%
Q26 621.5 611.5 −1.6%
Q27 387.6 427.9 +10.4%
Q28 399.3 450.7 +12.9%
Q29 2053.1 2084.4 +1.5%
Q30 1544.3 1545.1 +0.1%
Q31 607.9 656.2 +8.0%
Q32 583.3 627.2 +7.5%
Q33 640.3 678.7 +6.0%
Q34 676.0 717.5 +6.1%
Q35 422.2 419.8 −0.6%
Q36 294.5 283.7 −3.7%
Q37 405.9 409.8 +1.0%
Q38 137.0 144.7 +5.6%
Q39 144.1 131.5 −8.7%
Q40 126.2 124.2 −1.5%
Q41 285.0 280.7 −1.5%
Q42 315.0 329.0 +4.5%
Q43 242.4 245.3 +1.2%
Q44 336.2 338.8 +0.8%
Q45 438.2 437.6 −0.1%
Q46 338.3 352.9 +4.3%
Q47 312.0 312.2 +0.0%
Q48 345.5 345.8 +0.1%
Q49 418.2 394.7 −5.6%
Q50 443.5 435.7 −1.7%
Q51 440.5 436.9 −0.8%
Q52 536.9 536.4 −0.1%
Q53 520.5 507.2 −2.5%
Q54 558.6 563.1 +0.8%
Q55 232.9 242.6 +4.2%
Q56 6570.7 6549.8 −0.3%
Q57 6610.9 6633.2 +0.3%
Q58 6595.4 6541.2 −0.8%
Q59 6511.1 6573.0 +1.0%
Q60 3828.5 3774.9 −1.4%
Q61 9515.4 9643.3 +1.3%
Q62 9527.2 9670.0 +1.5%
Q63 9854.3 10142.9 +2.9%
Q64 3976.9 4022.4 +1.1%
Q65 9908.1 9938.6 +0.3%
Q66 552.8 569.2 +3.0%
Q67 506.7 534.9 +5.6%
Q68 519.2 577.1 +11.2%
Q69 868.8 914.9 +5.3%
Q70 826.5 886.6 +7.3%
Q71 891.9 949.4 +6.5%
Q72 1016.5 1049.4 +3.2%
Q73 426.5 419.9 −1.6%
Q74 507.8 508.9 +0.2%
Q75 455.0 461.2 +1.4%
Q76 417.6 419.0 +0.3%
Q77 412.8 437.6 +6.0%
Q78 453.0 450.0 −0.7%
Q79 581.2 556.6 −4.2%
Q80 582.7 549.4 −5.7%
Q81 580.9 602.7 +3.7%
Q82 597.0 609.8 +2.1%
Q83 505.8 501.0 −0.9%
Q84 411.5 423.8 +3.0%
Q85 525.9 517.1 −1.7%
Q86 1028.8 1073.9 +4.4%
Q87 919.2 967.5 +5.3%
Q88 572.6 624.1 +9.0%
Q89 559.0 596.8 +6.8%
Q90 615.6 650.7 +5.7%
Q91 516.6 510.9 −1.1%
Q92 455.5 453.9 −0.3%
Q93 511.5 503.9 −1.5%
Q94 442.4 429.5 −2.9%
Q95 451.7 433.2 −4.1%
Q96 470.4 428.6 −8.9%
Q97 530.2 514.1 −3.0%
Q98 499.1 515.5 +3.3%
Q99 587.1 578.7 −1.4%
Q100 831.4 853.0 +2.6%
Q101 786.7 854.7 +8.6%
Q102 1214.2 1227.8 +1.1%
Q103 543.9 571.6 +5.1%
Q104 578.0 613.4 +6.1%
Q105 558.4 600.5 +7.5%
Q106 601.9 665.6 +10.6%
Q107 576.8 636.8 +10.4%
Q108 612.8 696.8 +13.7%
Q109 19.0 18.3 −3.5%
Q110 114.4 120.9 +5.7%
Q111 289.3 295.4 +2.1%
Q112 265.1 259.6 −2.1%
Q113 325.6 324.1 −0.4%
Total 122985.9 124544.9 +1.3%

Simulated S3 (3 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q1 590.7 770.2 +30.4%
Q2 571.0 632.4 +10.8%
Q3 478.7 591.4 +23.5%
Q4 630.1 556.4 −11.7%
Q5 619.8 895.5 +44.5%
Q6 853.4 1070.0 +25.4%
Q7 456.1 457.0 +0.2%
Q8 831.7 680.2 −18.2%
Q9 1188.6 1267.2 +6.6%
Q10 1142.8 1147.5 +0.4%
Q11 1129.5 1260.0 +11.6%
Q12 743.2 963.7 +29.7%
Q13 785.5 856.0 +9.0%
Q14 824.0 845.0 +2.6%
Q15 378.4 515.8 +36.3%
Q16 441.4 401.9 −8.9%
Q17 1593.7 1589.2 −0.3%
Q18 1742.9 1624.5 −6.8%
Q19 1616.6 1686.8 +4.3%
Q20 1631.0 1750.2 +7.3%
Q21 1680.4 1827.5 +8.8%
Q22 1740.7 1678.5 −3.6%
Q23 2014.8 2168.4 +7.6%
Q24 2002.7 2080.4 +3.9%
Q25 1803.6 1935.2 +7.3%
Q26 2524.5 2552.5 +1.1%
Q27 1962.8 2114.1 +7.7%
Q28 1844.1 2224.0 +20.6%
Q29 3050.5 2954.4 −3.1%
Q30 2615.9 2680.6 +2.5%
Q31 2496.9 2762.3 +10.6%
Q32 2456.1 2672.2 +8.8%
Q33 2349.4 2989.8 +27.3%
Q34 2647.8 3003.4 +13.4%
Q35 1999.9 1786.2 −10.7%
Q36 1744.0 1374.4 −21.2%
Q37 1901.8 1884.7 −0.9%
Q38 782.2 905.1 +15.7%
Q39 731.6 926.7 +26.7%
Q40 744.1 818.2 +10.0%
Q41 1014.4 972.6 −4.1%
Q42 1553.1 1621.8 +4.4%
Q43 1203.0 1181.9 −1.8%
Q44 1304.4 1529.9 +17.3%
Q45 1554.9 1557.6 +0.2%
Q46 1203.9 1429.6 +18.8%
Q47 1197.9 1500.5 +25.3%
Q48 1207.0 1518.7 +25.8%
Q49 1319.7 1624.9 +23.1%
Q50 1271.5 1435.6 +12.9%
Q51 1346.1 1588.0 +18.0%
Q52 1886.4 1865.4 −1.1%
Q53 1782.4 1960.3 +10.0%
Q54 2014.1 1899.2 −5.7%
Q55 1562.4 1384.1 −11.4%
Q56 7617.3 7506.7 −1.5%
Q57 7674.1 7707.9 +0.4%
Q58 7584.1 7794.3 +2.8%
Q59 7636.2 7854.6 +2.9%
Q60 4787.1 4760.6 −0.6%
Q61 10652.6 10548.9 −1.0%
Q62 10676.6 10524.0 −1.4%
Q63 10837.6 10898.5 +0.6%
Q64 5099.7 5131.9 +0.6%
Q65 10853.1 10774.8 −0.7%
Q66 2161.2 2447.0 +13.2%
Q67 2235.2 2866.4 +28.2%
Q68 2177.0 2677.9 +23.0%
Q69 2859.4 3260.8 +14.0%
Q70 2901.2 3151.4 +8.6%
Q71 3058.8 3237.9 +5.9%
Q72 2938.5 3400.1 +15.7%
Q73 1967.5 1809.4 −8.0%
Q74 2283.3 2117.2 −7.3%
Q75 2003.8 2042.5 +1.9%
Q76 1940.3 1789.5 −7.8%
Q77 1652.3 1737.7 +5.2%
Q78 1603.4 1571.1 −2.0%
Q79 1811.4 1998.7 +10.3%
Q80 1899.4 1716.7 −9.6%
Q81 1921.7 2076.5 +8.1%
Q82 1884.4 1951.2 +3.5%
Q83 1999.2 1764.1 −11.8%
Q84 1667.1 1648.9 −1.1%
Q85 1944.3 1943.9 −0.0%
Q86 3434.0 3495.5 +1.8%
Q87 3510.4 3760.5 +7.1%
Q88 2589.4 2977.1 +15.0%
Q89 2682.1 3026.1 +12.8%
Q90 2621.9 3091.0 +17.9%
Q91 2539.4 2548.1 +0.3%
Q92 2130.4 2386.2 +12.0%
Q93 2394.3 2586.0 +8.0%
Q94 2034.9 1958.9 −3.7%
Q95 1783.5 1799.2 +0.9%
Q96 1800.2 2204.0 +22.4%
Q97 1990.5 1843.9 −7.4%
Q98 1934.6 1916.2 −1.0%
Q99 2077.1 2002.0 −3.6%
Q100 3684.1 3740.5 +1.5%
Q101 3547.5 4016.0 +13.2%
Q102 3858.9 4362.3 +13.0%
Q103 2724.6 3264.3 +19.8%
Q104 2743.0 2839.6 +3.5%
Q105 2673.8 3005.9 +12.4%
Q106 2818.1 3243.7 +15.1%
Q107 2980.2 3234.3 +8.5%
Q108 2781.5 3193.9 +14.8%
Q109 262.3 269.7 +2.8%
Q110 846.6 925.2 +9.3%
Q111 1587.8 1494.9 −5.9%
Q112 1515.1 1698.6 +12.1%
Q113 1516.6 1794.4 +18.3%
Total 272155.3 285359.0 +4.9%
ClickBench: local −0.9% overall, no query moves by 10% or more; simulated S3 −0.8%: three queries +12% to +18%, three −11% to −19%

Local (4 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q0 1.4 1.4 −0.4%
Q1 30.2 30.3 +0.2%
Q2 90.1 90.4 +0.4%
Q3 93.5 91.6 −2.1%
Q4 795.9 856.4 +7.6%
Q5 760.9 764.8 +0.5%
Q6 1.4 1.4 −0.7%
Q7 32.1 31.6 −1.3%
Q8 1096.8 1060.6 −3.3%
Q9 1135.2 1073.3 −5.4%
Q10 196.5 204.7 +4.2%
Q11 233.5 234.0 +0.2%
Q12 711.4 716.2 +0.7%
Q13 1038.8 1040.1 +0.1%
Q14 691.7 712.6 +3.0%
Q15 906.2 880.3 −2.9%
Q16 1816.4 1863.9 +2.6%
Q17 1837.1 1788.7 −2.6%
Q18 3616.1 3413.7 −5.6%
Q19 86.0 84.5 −1.8%
Q20 1142.3 1159.2 +1.5%
Q21 1154.0 1168.5 +1.3%
Q22 2226.4 2195.7 −1.4%
Q23 8805.6 8488.7 −3.6%
Q24 79.0 77.2 −2.2%
Q25 235.1 238.9 +1.6%
Q26 78.6 78.2 −0.5%
Q27 1153.4 1141.5 −1.0%
Q28 6298.7 6279.2 −0.3%
Q29 82.5 83.8 +1.5%
Q30 789.5 795.7 +0.8%
Q31 788.0 795.9 +1.0%
Q32 2914.1 2871.8 −1.5%
Q33 3557.7 3626.9 +1.9%
Q34 3609.7 3726.7 +3.2%
Q35 822.9 793.2 −3.6%
Q36 74.6 74.0 −0.7%
Q37 38.0 40.3 +6.0%
Q38 46.5 44.3 −4.7%
Q39 140.1 142.9 +2.0%
Q40 18.6 20.3 +9.0%
Q41 18.8 17.9 −4.9%
Q42 14.9 14.4 −3.3%
Total 49260.1 48815.8 −0.9%

Simulated S3 (3 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q0 1.3 1.4 +3.4%
Q1 2503.7 2647.7 +5.8%
Q2 3537.9 3523.1 −0.4%
Q3 3306.9 3159.8 −4.5%
Q4 3801.0 3511.8 −7.6%
Q5 3913.2 3821.2 −2.4%
Q6 1.4 1.4 −0.8%
Q7 2470.4 2485.1 +0.6%
Q8 3963.2 3858.4 −2.6%
Q9 5661.6 5445.9 −3.8%
Q10 4234.9 4238.5 +0.1%
Q11 4152.1 4266.6 +2.8%
Q12 3827.6 3634.0 −5.1%
Q13 5061.9 5025.3 −0.7%
Q14 3798.6 3757.7 −1.1%
Q15 3823.4 3777.6 −1.2%
Q16 5730.8 5679.4 −0.9%
Q17 5628.4 5832.2 +3.6%
Q18 7468.4 7432.2 −0.5%
Q19 2672.5 2442.9 −8.6%
Q20 7414.7 7169.7 −3.3%
Q21 7843.6 7486.1 −4.6%
Q22 10250.5 10221.3 −0.3%
Q23 28380.9 28501.2 +0.4%
Q24 1002.4 810.4 −19.2%
Q25 3432.3 3468.9 +1.1%
Q26 810.3 957.2 +18.1%
Q27 7538.9 7558.5 +0.3%
Q28 11150.9 10961.0 −1.7%
Q29 2858.5 2952.9 +3.3%
Q30 4892.8 5470.3 +11.8%
Q31 6069.5 6310.0 +4.0%
Q32 6825.6 6656.2 −2.5%
Q33 9209.7 9062.4 −1.6%
Q34 9333.6 8958.1 −4.0%
Q35 3585.2 3602.2 +0.5%
Q36 390.0 416.2 +6.7%
Q37 309.7 275.7 −11.0%
Q38 384.5 430.9 +12.1%
Q39 630.7 587.8 −6.8%
Q40 238.3 218.9 −8.2%
Q41 249.4 211.4 −15.2%
Q42 250.4 247.2 −1.3%
Total 198611.8 197076.5 −0.8%
ClickBench with filter pushdown: local −0.7% overall, no query moves by 10% or more; simulated S3 −0.9%: Q41 +44%, four queries −12% to −34%

Local (4 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q0 1.4 1.4 −0.2%
Q1 31.6 31.4 −0.6%
Q2 90.8 90.6 −0.2%
Q3 94.3 92.8 −1.5%
Q4 854.0 840.4 −1.6%
Q5 746.9 773.2 +3.5%
Q6 1.4 1.5 +1.3%
Q7 38.2 38.2 −0.1%
Q8 1125.4 1131.1 +0.5%
Q9 1156.8 1154.5 −0.2%
Q10 252.1 249.9 −0.9%
Q11 294.1 310.0 +5.4%
Q12 796.4 808.4 +1.5%
Q13 1149.4 1137.5 −1.0%
Q14 830.8 793.1 −4.5%
Q15 937.7 929.1 −0.9%
Q16 1838.8 1825.9 −0.7%
Q17 1882.2 1819.9 −3.3%
Q18 3632.9 3570.6 −1.7%
Q19 92.6 94.5 +2.1%
Q20 1143.8 1142.1 −0.2%
Q21 1331.8 1337.3 +0.4%
Q22 2178.2 2165.6 −0.6%
Q23 210.9 200.3 −5.0%
Q24 66.8 66.8 −0.0%
Q25 244.7 248.1 +1.4%
Q26 94.7 95.5 +0.9%
Q27 1202.2 1182.7 −1.6%
Q28 6442.1 6382.6 −0.9%
Q29 85.2 84.5 −0.8%
Q30 806.3 804.3 −0.2%
Q31 778.8 791.9 +1.7%
Q32 3050.1 2934.7 −3.8%
Q33 3748.9 3782.1 +0.9%
Q34 3664.9 3678.3 +0.4%
Q35 763.2 780.3 +2.2%
Q36 70.7 69.5 −1.7%
Q37 38.5 38.5 +0.1%
Q38 37.3 38.2 +2.3%
Q39 132.0 134.6 +2.0%
Q40 22.4 20.9 −6.9%
Q41 19.6 19.5 −0.7%
Q42 17.9 16.4 −8.5%
Total 41998.7 41708.7 −0.7%

Simulated S3 (3 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q0 1.4 1.4 +2.0%
Q1 2525.5 2482.0 −1.7%
Q2 3692.8 3527.0 −4.5%
Q3 3246.2 3037.6 −6.4%
Q4 3694.9 3936.7 +6.5%
Q5 4008.9 3706.1 −7.6%
Q6 1.4 1.5 +2.6%
Q7 2344.0 2535.0 +8.1%
Q8 3915.0 3859.8 −1.4%
Q9 5570.9 5527.7 −0.8%
Q10 5973.4 5936.2 −0.6%
Q11 6590.2 7065.0 +7.2%
Q12 3859.8 3690.8 −4.4%
Q13 7226.0 6982.4 −3.4%
Q14 6332.6 6540.3 +3.3%
Q15 3590.3 3774.4 +5.1%
Q16 5613.4 5556.3 −1.0%
Q17 5510.6 5462.6 −0.9%
Q18 7670.0 7965.4 +3.9%
Q19 2600.8 2435.0 −6.4%
Q20 7252.8 7210.0 −0.6%
Q21 10591.6 10643.2 +0.5%
Q22 19008.0 18682.9 −1.7%
Q23 2432.0 2398.2 −1.4%
Q24 1176.2 1146.9 −2.5%
Q25 3495.5 3521.9 +0.8%
Q26 1187.1 1249.3 +5.2%
Q27 9319.9 9155.5 −1.8%
Q28 11085.6 11228.0 +1.3%
Q29 3123.8 2758.1 −11.7%
Q30 8389.6 8000.4 −4.6%
Q31 9010.0 8968.8 −0.5%
Q32 6754.8 6562.3 −2.9%
Q33 9164.5 9138.8 −0.3%
Q34 9277.9 9171.3 −1.1%
Q35 3599.5 3580.6 −0.5%
Q36 861.3 800.9 −7.0%
Q37 951.0 627.0 −34.1%
Q38 1084.9 929.4 −14.3%
Q39 1094.1 916.9 −16.2%
Q40 807.8 783.5 −3.0%
Q41 671.7 966.8 +43.9%
Q42 602.1 579.9 −3.7%
Total 204910.0 203043.3 −0.9%
ClickBench needle queries: local −56.5% overall: Q0 37x and Q1 28x faster, Q2 −38%; simulated S3 −51.1%: Q0 7.1x and Q1 6.5x faster, Q2 −40%

Q0 to Q2 look up values that few row groups hold. Q3 looks up a phrase that every row group holds, which dictionaries cannot prune.

Local (12 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q0 2146.6 58.4 −97.3%
Q1 2177.4 77.8 −96.4%
Q2 2272.5 1403.2 −38.3%
Q3 2279.1 2322.2 +1.9%
Total 8875.6 3861.7 −56.5%

Simulated S3 (9 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q0 11432.5 1603.8 −86.0%
Q1 11583.3 1776.1 −84.7%
Q2 11773.5 7035.7 −40.2%
Q3 11578.4 12251.5 +5.8%
Total 46367.6 22667.1 −51.1%
ClickBench needle queries with filter pushdown: local −4.7% overall: Q0 3.6x and Q1 4.7x faster; simulated S3 −8.8%: Q0 −41%, Q1 −36%, Q2 −17%

Same queries as above, with --pushdown.

Local (12 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q0 80.1 22.3 −72.2%
Q1 140.5 29.6 −78.9%
Q2 225.3 223.9 −0.6%
Q3 1706.6 1776.1 +4.1%
Total 2152.5 2051.9 −4.7%

Simulated S3 (9 timed samples per query and mode)

Query Off (ms) On (ms) Change
Q0 2774.7 1645.7 −40.7%
Q1 3014.0 1913.9 −36.5%
Q2 3503.5 2916.5 −16.8%
Q3 14005.2 14760.1 +5.4%
Total 23297.5 21236.2 −8.8%

@DarkWanderer

Copy link
Copy Markdown
Contributor Author

Given the unexpectedly sad benchmark results, I'll close this and think more. Maybe this indeed belongs to arrow-rs as dictionary pruning. Thank you for your time and attention @alamb @adriangb

@DarkWanderer
DarkWanderer deleted the dictionary-filter branch November 18, 2026 19:32
@alamb

alamb commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

I think in general, the idea of "processing on parquet encoded data" is a good idea, but most of the encodings in Parquet is pretty hard to operate on

I think @HippoBaro's work to support reading into parquet into more efficient arrow formats (e.g RunEndArrays) is a good avenue to pursue (though we need to review 20k PR somehow 🤔 )

@HippoBaro

Copy link
Copy Markdown

Thanks @alamb! Small clarification: my current work is on the writer side: preserving Arrow’s encoding characteristics ()including REE) through to Parquet without expanding intermediate representations. There are similar opportunities on the reader side that I’d like to explore next.

I agree with the broad direction: Arrow is designed for in-memory processing and Parquet for storage. These objectives often compete with each other. I’d rather focus on making that transition efficient and encoding-preserving than build general execution over Parquet encodings directly, though retaining opportunities for early pruning is important.

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

Labels

common Related to common crate core Core DataFusion crate datasource Changes to the datasource crate documentation Improvements or additions to documentation physical-expr Changes to the physical-expr crates proto Related to proto crate sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable access to column dictionaries in async reader

6 participants