Skip to content

feat: Set NDV to Exact(1) for numeric equality filter predicates - #21077

Merged
xudong963 merged 5 commits into
apache:mainfrom
asolimando:asolimando/ndv-single-value-filter
Apr 7, 2026
Merged

feat: Set NDV to Exact(1) for numeric equality filter predicates#21077
xudong963 merged 5 commits into
apache:mainfrom
asolimando:asolimando/ndv-single-value-filter

Conversation

@asolimando

@asolimandoasolimando commented Mar 20, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Related: #20789 (uses NDV for equality filter selectivity, complementary - this PR improves the NDV output stats, that PR consumes them)

Rationale for this change

When a filter predicate collapses a column interval to a single value (e.g. d_qoy = 1), the output column can only have one distinct value. Currently distinct_count is always demoted to Inexact, losing this information.

This matters for downstream optimizers that rely on distinct_count, such as join cardinality estimation in estimate_inner_join_cardinality.

What changes are included in this PR?

In collect_new_statistics (filter.rs), when the post-filter interval has lower == upper (both non-null), set distinct_count to Precision::Exact(1) instead of demoting the input NDV to Inexact.

Are these changes tested?

Yes, 4 unit tests:

  • Equality predicate (a = 42) -> NDV becomes Exact(1)
  • OR predicate (a = 42 OR a = 22) -> interval does not collapse, NDV stays Inexact
  • AND with mixed predicates (a = 42 AND b > 10 AND c = 7) -> a and c get Exact(1), b stays Inexact
  • Equality with absent bounds (a = 42, no min/max) -> interval analysis still resolves to Exact(1)

Are there any user-facing changes?

No breaking changes. Statistics consumers will now see Exact(1) for distinct_count on columns constrained to a single value by filter predicates.

Disclaimer: I used AI to assist in the code generation, I have manually reviewed the output and it matches my intention and understanding.

@github-actionsgithub-actionsBot added the physical-plan Changes to the physical-plan crate label Mar 20, 2026
@asolimando
asolimandoforce-pushed the asolimando/ndv-single-value-filter branch from 061df5a to 0613f1aCompareMarch 20, 2026 12:24
@github-actionsgithub-actionsBot added the sqllogictest SQL Logic Tests (.slt) label Mar 20, 2026
@asolimandoasolimando changed the title feat: Set distinct_count to Exact(1) when filter narrows column to single valuefeat(stats): Set distinct_count to Exact(1) when filter narrows column to single valueMar 20, 2026
@asolimando

Copy link
Copy Markdown
MemberAuthor

cc: @jonathanc-n

@@ -59,7 +59,7 @@ query TT
EXPLAIN SELECT * FROM test_table WHERE column1 = 1;

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.

Can we add some tests with e.g. floating point numbers, strings? I think it should work just the same but....

@asolimandoasolimandoMar 23, 2026

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Thanks for the suggestion! I added tests for additional numeric types (Int8, Int64, Float32) beyond the original Int32/Float64, all producing NDV=Exact(1) as expected. Also added a reversed predicate test (42 = a instead of a = 42) to confirm operand order doesn't matter.

I investigated string (Utf8) and temporal types (Timestamp, Interval) as well: neither collapses to a single-value interval today due to limitations in the constraint propagation solver. I filed separate issues to track those:

The test coverage now includes:

  • Per-type: Int8, Int32, Int64, Float32, Float64
  • Predicate shapes: simple equality, OR, AND (multi-column), reversed operands, absent bounds

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.

Can you make the tests in 1531e5c SLT tests please? We often find them more valuable than unit tests. Sorry I should have clarified in my comment above...

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

No worries, re-reading your comment it was pretty clear already, I think this is on me!

I have added tests to the same file in 0613f1a, but over a different (single file) table, the use case for single table/multiple files being covered by the first test, I hope I have captured your intention.

I took dictionary.slt#L34 as a reference on how to cast to different numeric types in SLT tests.

I haven't dropped 1531e5c as I feel it's valuable to have unit tests co-located with the code, but this feels redundant I am OK removing them.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Apologies for the force-push in the middle of a review, @adriangb, but there was a conflict with the main branch on the SLT test file.

The diff w.r.t. what you looked at is the top-most commit (ab09466), I haven't touched anything else.

@asolimandoasolimando changed the title feat(stats): Set distinct_count to Exact(1) when filter narrows column to single valuefeat: Set NDV to Exact(1) for numeric equality filter predicatesMar 23, 2026
When a filter predicate collapses a column's interval to a single
value (e.g. d_qoy = 1), the output has exactly 1 distinct value.
Previously the original Parquet NDV was propagated, inflating
GROUP BY output estimates for CTE self-join patterns like Q31.
Cover Int8, Int64, Float32 equality predicates and reversed
operand order (literal = column) for NDV single-value optimization.
Cover Int8, Int64, Float32 equality predicates and reversed operand
order (literal = column) as sqllogictests in parquet_statistics.slt.
@asolimando
asolimandoforce-pushed the asolimando/ndv-single-value-filter branch from a98ead3 to ab09466CompareApril 1, 2026 12:38
@Dandandan

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-c4187368762-797-n84m8 6.12.55+ #1 SMP Sun Feb 1 08:59:41 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 asolimando/ndv-single-value-filter (ab09466) to bc2b36c (merge-base) diff using: 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-c4187368762-795-zjhtl 6.12.55+ #1 SMP Sun Feb 1 08:59:41 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 asolimando/ndv-single-value-filter (ab09466) to bc2b36c (merge-base) diff using: clickbench_partitioned
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-c4187368762-796-hgsw4 6.12.55+ #1 SMP Sun Feb 1 08:59:41 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 asolimando/ndv-single-value-filter (ab09466) to bc2b36c (merge-base) diff using: tpcds
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)

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 asolimando_ndv-single-value-filter
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ asolimando_ndv-single-value-filter ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 1 │ 45.02 / 46.33 ±1.55 / 49.32 ms │ 45.03 / 45.95 ±0.98 / 47.21 ms │ no change │
│ QQuery 2 │ 20.79 / 21.09 ±0.24 / 21.47 ms │ 20.68 / 20.95 ±0.24 / 21.31 ms │ no change │
│ QQuery 3 │ 31.51 / 31.69 ±0.24 / 32.14 ms │ 31.41 / 31.69 ±0.22 / 32.03 ms │ no change │
│ QQuery 4 │ 20.17 / 20.99 ±0.65 / 21.83 ms │ 20.08 / 21.37 ±0.65 / 21.80 ms │ no change │
│ QQuery 5 │ 47.06 / 48.99 ±1.53 / 50.86 ms │ 46.89 / 48.16 ±1.59 / 51.19 ms │ no change │
│ QQuery 6 │ 17.02 / 17.13 ±0.10 / 17.30 ms │ 17.11 / 18.27 ±1.26 / 19.97 ms │ 1.07x slower │
│ QQuery 7 │ 54.45 / 55.62 ±1.73 / 59.05 ms │ 54.19 / 54.69 ±0.42 / 55.37 ms │ no change │
│ QQuery 8 │ 47.77 / 49.23 ±2.17 / 53.48 ms │ 47.59 / 47.94 ±0.29 / 48.28 ms │ no change │
│ QQuery 9 │ 53.30 / 54.37 ±0.59 / 54.96 ms │ 54.49 / 56.18 ±2.18 / 60.40 ms │ no change │
│ QQuery 10 │ 70.22 / 70.93 ±0.47 / 71.36 ms │ 70.93 / 72.02 ±1.37 / 74.61 ms │ no change │
│ QQuery 11 │ 13.64 / 14.11 ±0.46 / 14.75 ms │ 13.80 / 13.97 ±0.17 / 14.27 ms │ no change │
│ QQuery 12 │ 27.44 / 27.91 ±0.25 / 28.16 ms │ 27.31 / 27.89 ±0.33 / 28.23 ms │ no change │
│ QQuery 13 │ 37.52 / 38.71 ±0.76 / 39.93 ms │ 37.64 / 39.23 ±1.13 / 41.17 ms │ no change │
│ QQuery 14 │ 28.16 / 28.54 ±0.29 / 29.06 ms │ 28.15 / 28.61 ±0.54 / 29.65 ms │ no change │
│ QQuery 15 │ 33.15 / 33.52 ±0.24 / 33.86 ms │ 33.27 / 34.10 ±0.72 / 35.09 ms │ no change │
│ QQuery 16 │ 15.76 / 15.94 ±0.12 / 16.14 ms │ 15.56 / 15.96 ±0.39 / 16.63 ms │ no change │
│ QQuery 17 │ 71.35 / 72.66 ±0.96 / 74.10 ms │ 71.08 / 72.90 ±0.96 / 73.93 ms │ no change │
│ QQuery 18 │ 75.53 / 77.56 ±1.61 / 79.70 ms │ 75.66 / 77.13 ±1.16 / 78.47 ms │ no change │
│ QQuery 19 │ 37.19 / 37.38 ±0.12 / 37.52 ms │ 37.28 / 38.76 ±0.92 / 39.76 ms │ no change │
│ QQuery 20 │ 40.20 / 40.70 ±0.40 / 41.39 ms │ 39.95 / 40.75 ±0.68 / 41.91 ms │ no change │
│ QQuery 21 │ 64.22 / 65.22 ±0.82 / 66.40 ms │ 62.53 / 63.69 ±1.15 / 65.48 ms │ no change │
│ QQuery 22 │ 17.32 / 17.81 ±0.28 / 18.05 ms │ 17.59 / 17.94 ±0.27 / 18.26 ms │ no change │
└───────────┴────────────────────────────────┴────────────────────────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD) │ 886.42ms │
│ Total Time (asolimando_ndv-single-value-filter) │ 888.15ms │
│ Average Time (HEAD) │ 40.29ms │
│ Average Time (asolimando_ndv-single-value-filter) │ 40.37ms │
│ Queries Faster │ 0 │
│ Queries Slower │ 1 │
│ Queries with No Change │ 21 │
│ Queries with Failure │ 0 │
└───────────────────────────────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

MetricValue
Wall time4.7s
Peak memory4.0 GiB
Avg memory3.5 GiB
CPU user32.9s
CPU sys2.9s
Peak spill0 B

tpch — branch

MetricValue
Wall time4.7s
Peak memory3.9 GiB
Avg memory3.5 GiB
CPU user33.1s
CPU sys2.8s
Peak spill0 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)

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 asolimando_ndv-single-value-filter
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ asolimando_ndv-single-value-filter ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 1 │ 43.72 / 44.47 ±0.78 / 45.82 ms │ 43.43 / 44.25 ±0.64 / 45.38 ms │ no change │
│ QQuery 2 │ 147.14 / 148.13 ±0.96 / 149.93 ms │ 146.11 / 147.17 ±0.75 / 148.39 ms │ no change │
│ QQuery 3 │ 114.19 / 115.36 ±1.03 / 117.05 ms │ 114.43 / 114.90 ±0.40 / 115.51 ms │ no change │
│ QQuery 4 │ 1375.58 / 1404.11 ±16.72 / 1427.66 ms │ 1389.11 / 1428.53 ±21.78 / 1455.75 ms │ no change │
│ QQuery 5 │ 174.02 / 175.62 ±0.95 / 176.60 ms │ 172.62 / 174.71 ±1.74 / 177.17 ms │ no change │
│ QQuery 6 │ 1069.26 / 1086.47 ±13.10 / 1103.34 ms │ 1036.61 / 1053.26 ±14.07 / 1077.79 ms │ no change │
│ QQuery 7 │ 356.71 / 360.61 ±2.73 / 365.13 ms │ 358.34 / 361.79 ±3.84 / 369.17 ms │ no change │
│ QQuery 8 │ 115.02 / 117.22 ±1.35 / 118.77 ms │ 115.86 / 117.24 ±1.03 / 118.70 ms │ no change │
│ QQuery 9 │ 100.95 / 104.45 ±2.56 / 107.86 ms │ 101.33 / 105.10 ±3.24 / 109.56 ms │ no change │
│ QQuery 10 │ 107.97 / 108.86 ±0.70 / 110.13 ms │ 106.69 / 108.89 ±1.33 / 110.31 ms │ no change │
│ QQuery 11 │ 984.20 / 998.81 ±10.57 / 1016.36 ms │ 984.79 / 1000.76 ±9.87 / 1011.10 ms │ no change │
│ QQuery 12 │ 44.42 / 47.06 ±2.05 / 49.50 ms │ 44.68 / 46.84 ±1.45 / 49.19 ms │ no change │
│ QQuery 13 │ 406.69 / 409.70 ±2.28 / 413.29 ms │ 404.58 / 411.00 ±3.45 / 414.47 ms │ no change │
│ QQuery 14 │ 1021.00 / 1031.72 ±6.49 / 1040.90 ms │ 1011.26 / 1028.33 ±11.95 / 1044.02 ms │ no change │
│ QQuery 15 │ 16.07 / 16.65 ±0.57 / 17.55 ms │ 16.39 / 17.68 ±0.98 / 19.29 ms │ 1.06x slower │
│ QQuery 16 │ 40.50 / 41.39 ±0.90 / 43.00 ms │ 41.65 / 41.98 ±0.30 / 42.47 ms │ no change │
│ QQuery 17 │ 239.13 / 242.93 ±2.89 / 246.47 ms │ 237.62 / 240.58 ±2.41 / 243.82 ms │ no change │
│ QQuery 18 │ 127.11 / 130.63 ±1.97 / 132.36 ms │ 129.53 / 132.00 ±1.98 / 134.68 ms │ no change │
│ QQuery 19 │ 154.99 / 156.48 ±1.38 / 158.81 ms │ 156.31 / 157.60 ±1.24 / 159.24 ms │ no change │
│ QQuery 20 │ 13.71 / 14.50 ±0.52 / 15.17 ms │ 14.35 / 14.77 ±0.52 / 15.72 ms │ no change │
│ QQuery 21 │ 19.25 / 20.22 ±0.67 / 21.35 ms │ 19.13 / 20.44 ±0.88 / 21.88 ms │ no change │
│ QQuery 22 │ 490.40 / 492.04 ±1.78 / 495.07 ms │ 494.21 / 495.96 ±1.42 / 497.58 ms │ no change │
│ QQuery 23 │ 905.29 / 909.89 ±4.94 / 919.31 ms │ 906.19 / 916.74 ±6.57 / 926.76 ms │ no change │
│ QQuery 24 │ 419.24 / 421.01 ±1.84 / 424.44 ms │ 423.84 / 428.81 ±3.96 / 436.00 ms │ no change │
│ QQuery 25 │ 356.53 / 359.58 ±2.47 / 363.53 ms │ 357.75 / 359.77 ±1.63 / 362.70 ms │ no change │
│ QQuery 26 │ 81.98 / 83.91 ±1.33 / 85.49 ms │ 83.31 / 84.44 ±1.52 / 87.39 ms │ no change │
│ QQuery 27 │ 350.88 / 351.82 ±0.53 / 352.50 ms │ 355.33 / 358.99 ±1.96 / 361.18 ms │ no change │
│ QQuery 28 │ 150.49 / 153.39 ±2.41 / 155.92 ms │ 150.40 / 151.51 ±0.77 / 152.72 ms │ no change │
│ QQuery 29 │ 299.99 / 302.43 ±2.11 / 305.97 ms │ 299.74 / 302.95 ±1.98 / 305.08 ms │ no change │
│ QQuery 30 │ 43.89 / 45.87 ±2.03 / 49.50 ms │ 44.68 / 45.85 ±0.85 / 47.31 ms │ no change │
│ QQuery 31 │ 170.74 / 172.77 ±1.10 / 173.97 ms │ 172.36 / 173.48 ±1.24 / 175.82 ms │ no change │
│ QQuery 32 │ 56.35 / 57.84 ±1.20 / 60.00 ms │ 56.67 / 58.25 ±1.33 / 60.67 ms │ no change │
│ QQuery 33 │ 141.62 / 143.86 ±1.48 / 145.85 ms │ 140.58 / 143.16 ±2.40 / 147.10 ms │ no change │
│ QQuery 34 │ 107.16 / 108.06 ±0.86 / 109.14 ms │ 106.10 / 107.66 ±1.10 / 109.54 ms │ no change │
│ QQuery 35 │ 109.26 / 110.57 ±1.03 / 112.24 ms │ 107.80 / 109.59 ±1.53 / 111.85 ms │ no change │
│ QQuery 36 │ 216.27 / 222.12 ±3.41 / 226.45 ms │ 210.33 / 218.78 ±5.42 / 224.45 ms │ no change │
│ QQuery 37 │ 177.29 / 180.89 ±2.39 / 183.90 ms │ 176.46 / 178.46 ±1.94 / 181.48 ms │ no change │
│ QQuery 38 │ 83.88 / 87.05 ±3.72 / 94.21 ms │ 83.89 / 85.94 ±1.77 / 88.98 ms │ no change │
│ QQuery 39 │ 125.46 / 127.78 ±1.67 / 129.99 ms │ 124.18 / 129.41 ±3.42 / 134.25 ms │ no change │
│ QQuery 40 │ 109.93 / 119.39 ±8.60 / 133.59 ms │ 110.88 / 117.14 ±5.24 / 126.23 ms │ no change │
│ QQuery 41 │ 14.38 / 14.69 ±0.27 / 15.10 ms │ 14.60 / 16.08 ±1.45 / 18.23 ms │ 1.09x slower │
│ QQuery 42 │ 108.02 / 109.17 ±1.14 / 110.88 ms │ 108.58 / 110.08 ±1.26 / 112.36 ms │ no change │
│ QQuery 43 │ 83.71 / 85.11 ±1.01 / 86.50 ms │ 84.98 / 85.59 ±0.71 / 86.98 ms │ no change │
│ QQuery 44 │ 11.39 / 12.00 ±0.47 / 12.83 ms │ 12.20 / 12.48 ±0.32 / 13.07 ms │ no change │
│ QQuery 45 │ 52.25 / 54.27 ±1.22 / 55.84 ms │ 53.22 / 54.25 ±0.89 / 55.49 ms │ no change │
│ QQuery 46 │ 229.79 / 235.06 ±3.64 / 240.94 ms │ 235.26 / 237.53 ±2.23 / 241.65 ms │ no change │
│ QQuery 47 │ 728.56 / 731.18 ±2.20 / 734.47 ms │ 738.70 / 747.27 ±6.96 / 758.48 ms │ no change │
│ QQuery 48 │ 295.56 / 297.82 ±2.22 / 301.49 ms │ 285.72 / 296.04 ±5.57 / 301.89 ms │ no change │
│ QQuery 49 │ 254.88 / 257.20 ±1.49 / 259.42 ms │ 255.15 / 258.04 ±2.17 / 260.99 ms │ no change │
│ QQuery 50 │ 228.65 / 236.31 ±5.81 / 244.10 ms │ 231.49 / 235.86 ±3.44 / 240.10 ms │ no change │
│ QQuery 51 │ 182.96 / 185.53 ±2.53 / 189.60 ms │ 184.66 / 186.52 ±1.61 / 188.73 ms │ no change │
│ QQuery 52 │ 107.98 / 108.78 ±0.73 / 109.65 ms │ 108.86 / 109.97 ±1.37 / 112.63 ms │ no change │
│ QQuery 53 │ 103.48 / 105.21 ±1.53 / 107.47 ms │ 105.07 / 106.06 ±1.08 / 107.77 ms │ no change │
│ QQuery 54 │ 147.58 / 148.89 ±0.80 / 149.83 ms │ 147.96 / 150.98 ±1.63 / 152.86 ms │ no change │
│ QQuery 55 │ 108.31 / 109.48 ±1.79 / 113.02 ms │ 107.16 / 108.79 ±0.90 / 109.74 ms │ no change │
│ QQuery 56 │ 140.88 / 143.06 ±1.43 / 145.04 ms │ 143.20 / 144.40 ±0.97 / 146.04 ms │ no change │
│ QQuery 57 │ 174.96 / 177.54 ±1.94 / 180.36 ms │ 174.42 / 178.54 ±2.20 / 180.95 ms │ no change │
│ QQuery 58 │ 286.99 / 301.51 ±10.04 / 311.36 ms │ 312.48 / 327.25 ±9.37 / 340.17 ms │ 1.09x slower │
│ QQuery 59 │ 198.70 / 199.85 ±1.03 / 201.79 ms │ 200.21 / 203.31 ±1.75 / 205.54 ms │ no change │
│ QQuery 60 │ 143.88 / 144.91 ±0.93 / 146.26 ms │ 145.11 / 146.85 ±1.38 / 148.60 ms │ no change │
│ QQuery 61 │ 170.74 / 173.93 ±1.69 / 175.66 ms │ 177.05 / 177.71 ±0.80 / 179.23 ms │ no change │
│ QQuery 62 │ 911.57 / 944.32 ±22.40 / 970.74 ms │ 930.75 / 966.27 ±25.55 / 1007.00 ms │ no change │
│ QQuery 63 │ 103.88 / 106.84 ±2.40 / 110.40 ms │ 104.48 / 106.29 ±2.21 / 110.52 ms │ no change │
│ QQuery 64 │ 704.53 / 712.54 ±4.81 / 719.27 ms │ 699.82 / 711.10 ±8.44 / 723.22 ms │ no change │
│ QQuery 65 │ 254.57 / 256.54 ±1.68 / 259.04 ms │ 254.98 / 257.41 ±1.39 / 258.79 ms │ no change │
│ QQuery 66 │ 249.05 / 258.20 ±5.72 / 265.33 ms │ 239.61 / 261.72 ±11.56 / 272.54 ms │ no change │
│ QQuery 67 │ 313.19 / 321.90 ±7.14 / 333.30 ms │ 311.21 / 321.31 ±8.40 / 335.40 ms │ no change │
│ QQuery 68 │ 283.24 / 286.20 ±2.35 / 290.26 ms │ 282.29 / 289.89 ±4.17 / 294.25 ms │ no change │
│ QQuery 69 │ 103.70 / 104.60 ±0.61 / 105.22 ms │ 102.86 / 104.52 ±1.59 / 107.23 ms │ no change │
│ QQuery 70 │ 339.86 / 346.71 ±5.95 / 356.38 ms │ 336.48 / 364.09 ±18.09 / 392.84 ms │ 1.05x slower │
│ QQuery 71 │ 135.25 / 138.42 ±3.01 / 143.16 ms │ 135.14 / 139.22 ±2.99 / 144.43 ms │ no change │
│ QQuery 72 │ 706.05 / 724.39 ±12.40 / 743.65 ms │ 696.65 / 721.90 ±14.22 / 735.92 ms │ no change │
│ QQuery 73 │ 102.75 / 103.97 ±1.01 / 105.07 ms │ 102.92 / 105.04 ±1.56 / 106.86 ms │ no change │
│ QQuery 74 │ 600.89 / 606.54 ±4.86 / 613.36 ms │ 607.98 / 612.80 ±3.12 / 617.48 ms │ no change │
│ QQuery 75 │ 276.57 / 279.79 ±2.50 / 282.62 ms │ 275.02 / 277.75 ±1.55 / 279.22 ms │ no change │
│ QQuery 76 │ 133.37 / 135.06 ±1.34 / 136.60 ms │ 132.65 / 135.81 ±2.10 / 138.68 ms │ no change │
│ QQuery 77 │ 188.16 / 189.63 ±1.26 / 191.94 ms │ 188.36 / 190.55 ±1.20 / 191.80 ms │ no change │
│ QQuery 78 │ 356.71 / 357.76 ±0.91 / 358.97 ms │ 350.55 / 357.86 ±3.88 / 361.79 ms │ no change │
│ QQuery 79 │ 237.26 / 238.99 ±1.31 / 240.88 ms │ 233.48 / 239.57 ±3.73 / 244.38 ms │ no change │
│ QQuery 80 │ 327.16 / 331.74 ±2.71 / 335.16 ms │ 329.78 / 331.87 ±1.74 / 334.00 ms │ no change │
│ QQuery 81 │ 26.85 / 27.33 ±0.50 / 28.12 ms │ 25.99 / 27.18 ±1.06 / 29.16 ms │ no change │
│ QQuery 82 │ 202.39 / 205.90 ±2.02 / 208.24 ms │ 198.06 / 200.80 ±2.46 / 204.96 ms │ no change │
│ QQuery 83 │ 39.65 / 40.59 ±0.64 / 41.59 ms │ 38.94 / 40.70 ±1.29 / 42.54 ms │ no change │
│ QQuery 84 │ 49.41 / 50.63 ±1.34 / 53.23 ms │ 49.22 / 49.93 ±0.56 / 50.93 ms │ no change │
│ QQuery 85 │ 150.51 / 151.65 ±0.86 / 152.90 ms │ 147.63 / 150.09 ±1.76 / 152.70 ms │ no change │
│ QQuery 86 │ 39.17 / 40.56 ±1.04 / 42.37 ms │ 38.78 / 40.81 ±1.57 / 43.63 ms │ no change │
│ QQuery 87 │ 84.93 / 90.24 ±4.41 / 98.16 ms │ 84.51 / 89.89 ±3.09 / 93.97 ms │ no change │
│ QQuery 88 │ 100.88 / 101.93 ±0.98 / 103.49 ms │ 99.35 / 100.61 ±0.89 / 101.86 ms │ no change │
│ QQuery 89 │ 120.64 / 121.54 ±0.85 / 122.57 ms │ 116.94 / 120.51 ±2.97 / 125.52 ms │ no change │
│ QQuery 90 │ 23.89 / 24.41 ±0.36 / 25.00 ms │ 23.60 / 23.83 ±0.18 / 24.08 ms │ no change │
│ QQuery 91 │ 64.58 / 65.98 ±0.88 / 67.11 ms │ 63.21 / 64.57 ±1.15 / 66.49 ms │ no change │
│ QQuery 92 │ 57.94 / 58.96 ±0.61 / 59.83 ms │ 58.76 / 59.68 ±0.50 / 60.23 ms │ no change │
│ QQuery 93 │ 197.31 / 200.47 ±1.83 / 202.53 ms │ 192.94 / 195.60 ±1.84 / 198.45 ms │ no change │
│ QQuery 94 │ 62.05 / 63.19 ±0.85 / 64.47 ms │ 61.21 / 62.08 ±0.66 / 62.95 ms │ no change │
│ QQuery 95 │ 136.83 / 138.62 ±1.03 / 139.96 ms │ 133.64 / 135.49 ±1.44 / 137.89 ms │ no change │
│ QQuery 96 │ 75.03 / 76.85 ±1.69 / 79.87 ms │ 70.74 / 75.03 ±2.80 / 78.08 ms │ no change │
│ QQuery 97 │ 135.73 / 137.91 ±1.67 / 139.53 ms │ 131.75 / 132.92 ±0.83 / 134.10 ms │ no change │
│ QQuery 98 │ 156.14 / 161.47 ±2.82 / 164.08 ms │ 157.29 / 159.29 ±1.52 / 161.85 ms │ no change │
│ QQuery 99 │ 10837.34 / 10874.10 ±31.71 / 10926.91 ms │ 10833.93 / 10879.48 ±39.48 / 10940.15 ms │ no change │
└───────────┴──────────────────────────────────────────┴──────────────────────────────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 34133.63ms │
│ Total Time (asolimando_ndv-single-value-filter) │ 34231.77ms │
│ Average Time (HEAD) │ 344.78ms │
│ Average Time (asolimando_ndv-single-value-filter) │ 345.78ms │
│ Queries Faster │ 0 │
│ Queries Slower │ 4 │
│ Queries with No Change │ 95 │
│ Queries with Failure │ 0 │
└───────────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

MetricValue
Wall time171.0s
Peak memory5.9 GiB
Avg memory4.7 GiB
CPU user273.7s
CPU sys19.0s
Peak spill0 B

tpcds — branch

MetricValue
Wall time171.5s
Peak memory5.5 GiB
Avg memory4.4 GiB
CPU user273.6s
CPU sys19.9s
Peak spill0 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)

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 asolimando_ndv-single-value-filter
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ asolimando_ndv-single-value-filter ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.39 / 4.78 ±6.63 / 18.03 ms │ 1.38 / 4.79 ±6.57 / 17.93 ms │ no change │
│ QQuery 1 │ 14.64 / 15.23 ±0.31 / 15.57 ms │ 14.87 / 15.29 ±0.29 / 15.70 ms │ no change │
│ QQuery 2 │ 44.63 / 45.06 ±0.31 / 45.54 ms │ 44.95 / 45.24 ±0.21 / 45.57 ms │ no change │
│ QQuery 3 │ 43.10 / 46.64 ±2.54 / 49.92 ms │ 44.07 / 46.13 ±1.10 / 47.23 ms │ no change │
│ QQuery 4 │ 315.94 / 322.85 ±5.41 / 329.46 ms │ 313.65 / 326.80 ±7.65 / 337.38 ms │ no change │
│ QQuery 5 │ 365.72 / 370.23 ±2.39 / 372.68 ms │ 373.34 / 378.12 ±2.71 / 381.33 ms │ no change │
│ QQuery 6 │ 6.02 / 6.40 ±0.46 / 7.22 ms │ 4.91 / 6.66 ±1.21 / 8.13 ms │ no change │
│ QQuery 7 │ 17.44 / 18.31 ±1.43 / 21.15 ms │ 17.60 / 17.85 ±0.21 / 18.23 ms │ no change │
│ QQuery 8 │ 444.72 / 457.99 ±8.33 / 467.93 ms │ 459.76 / 465.71 ±4.47 / 470.33 ms │ no change │
│ QQuery 9 │ 704.19 / 714.92 ±7.39 / 727.39 ms │ 711.89 / 722.86 ±9.18 / 733.78 ms │ no change │
│ QQuery 10 │ 94.36 / 97.35 ±1.91 / 100.30 ms │ 96.09 / 98.66 ±2.65 / 103.02 ms │ no change │
│ QQuery 11 │ 107.39 / 108.92 ±1.52 / 111.24 ms │ 109.95 / 110.87 ±0.71 / 111.73 ms │ no change │
│ QQuery 12 │ 372.50 / 376.20 ±3.76 / 383.05 ms │ 375.79 / 380.21 ±4.93 / 388.94 ms │ no change │
│ QQuery 13 │ 481.86 / 504.31 ±22.98 / 547.65 ms │ 473.01 / 494.01 ±16.98 / 524.55 ms │ no change │
│ QQuery 14 │ 376.96 / 381.83 ±4.54 / 387.53 ms │ 376.99 / 379.03 ±1.42 / 380.71 ms │ no change │
│ QQuery 15 │ 397.87 / 407.67 ±16.03 / 439.63 ms │ 396.19 / 414.86 ±19.08 / 449.50 ms │ no change │
│ QQuery 16 │ 774.39 / 789.39 ±17.85 / 823.28 ms │ 769.26 / 792.60 ±22.73 / 825.51 ms │ no change │
│ QQuery 17 │ 766.38 / 769.55 ±2.97 / 773.36 ms │ 752.83 / 759.96 ±5.22 / 768.58 ms │ no change │
│ QQuery 18 │ 1526.66 / 1556.37 ±21.01 / 1590.60 ms │ 1506.81 / 1567.13 ±40.57 / 1609.50 ms │ no change │
│ QQuery 19 │ 35.57 / 47.25 ±20.99 / 89.20 ms │ 36.93 / 50.77 ±12.03 / 71.12 ms │ 1.07x slower │
│ QQuery 20 │ 722.15 / 742.51 ±21.78 / 774.08 ms │ 727.41 / 743.83 ±21.93 / 787.24 ms │ no change │
│ QQuery 21 │ 772.60 / 778.22 ±4.93 / 785.30 ms │ 773.41 / 779.10 ±3.20 / 782.75 ms │ no change │
│ QQuery 22 │ 1160.37 / 1165.74 ±7.17 / 1179.71 ms │ 1154.05 / 1160.44 ±3.45 / 1163.99 ms │ no change │
│ QQuery 23 │ 3163.07 / 3186.68 ±12.57 / 3200.16 ms │ 3161.05 / 3186.97 ±13.31 / 3197.65 ms │ no change │
│ QQuery 24 │ 99.86 / 103.96 ±2.67 / 107.10 ms │ 104.06 / 106.70 ±1.38 / 107.94 ms │ no change │
│ QQuery 25 │ 141.35 / 142.55 ±1.32 / 144.95 ms │ 144.65 / 147.37 ±1.92 / 149.88 ms │ no change │
│ QQuery 26 │ 99.40 / 103.71 ±2.61 / 106.26 ms │ 103.37 / 105.43 ±1.08 / 106.41 ms │ no change │
│ QQuery 27 │ 859.00 / 868.62 ±9.60 / 884.49 ms │ 858.77 / 865.37 ±6.57 / 874.60 ms │ no change │
│ QQuery 28 │ 7814.69 / 7868.43 ±31.40 / 7901.10 ms │ 7808.43 / 7863.66 ±29.33 / 7891.44 ms │ no change │
│ QQuery 29 │ 52.49 / 56.01 ±5.49 / 66.89 ms │ 51.88 / 56.89 ±3.61 / 61.17 ms │ no change │
│ QQuery 30 │ 387.73 / 396.06 ±6.89 / 407.48 ms │ 379.59 / 391.68 ±7.22 / 400.37 ms │ no change │
│ QQuery 31 │ 393.19 / 406.38 ±10.31 / 424.80 ms │ 383.46 / 393.25 ±11.86 / 415.95 ms │ no change │
│ QQuery 32 │ 1291.63 / 1340.20 ±35.14 / 1391.82 ms │ 1094.14 / 1108.55 ±20.20 / 1147.67 ms │ +1.21x faster │
│ QQuery 33 │ 1574.51 / 1609.04 ±35.55 / 1675.79 ms │ 1557.06 / 1566.34 ±8.20 / 1578.92 ms │ no change │
│ QQuery 34 │ 1556.71 / 1571.63 ±10.30 / 1583.14 ms │ 1561.45 / 1571.45 ±5.45 / 1577.55 ms │ no change │
│ QQuery 35 │ 435.80 / 452.92 ±10.93 / 468.08 ms │ 434.22 / 444.84 ±5.73 / 449.96 ms │ no change │
│ QQuery 36 │ 124.68 / 129.38 ±3.86 / 136.31 ms │ 125.66 / 130.94 ±3.89 / 137.70 ms │ no change │
│ QQuery 37 │ 50.44 / 53.26 ±2.16 / 56.55 ms │ 49.92 / 51.85 ±1.37 / 53.34 ms │ no change │
│ QQuery 38 │ 77.77 / 80.39 ±2.60 / 85.34 ms │ 76.67 / 78.31 ±1.67 / 80.88 ms │ no change │
│ QQuery 39 │ 220.05 / 237.40 ±11.76 / 254.73 ms │ 221.41 / 233.70 ±7.99 / 243.87 ms │ no change │
│ QQuery 40 │ 26.88 / 29.05 ±2.49 / 33.81 ms │ 26.91 / 27.83 ±0.67 / 28.95 ms │ no change │
│ QQuery 41 │ 20.72 / 21.69 ±0.71 / 22.64 ms │ 20.74 / 23.02 ±1.28 / 24.49 ms │ 1.06x slower │
│ QQuery 42 │ 20.48 / 21.95 ±1.27 / 24.28 ms │ 20.59 / 21.41 ±0.44 / 21.89 ms │ no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 28407.04ms │
│ Total Time (asolimando_ndv-single-value-filter) │ 28136.49ms │
│ Average Time (HEAD) │ 660.63ms │
│ Average Time (asolimando_ndv-single-value-filter) │ 654.34ms │
│ Queries Faster │ 1 │
│ Queries Slower │ 2 │
│ Queries with No Change │ 40 │
│ Queries with Failure │ 0 │
└───────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

MetricValue
Wall time143.2s
Peak memory40.8 GiB
Avg memory28.8 GiB
CPU user1336.1s
CPU sys105.0s
Peak spill0 B

clickbench_partitioned — branch

MetricValue
Wall time141.9s
Peak memory41.8 GiB
Avg memory33.0 GiB
CPU user1332.7s
CPU sys94.6s
Peak spill0 B

File an issue against this benchmark runner

@adriangb

Copy link
Copy Markdown
Contributor

run benchmark clickbench_partitioned

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance:c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4187407489-798-gvmjv 6.12.55+ #1 SMP Sun Feb 1 08:59:41 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 asolimando/ndv-single-value-filter (ab09466) to bc2b36c (merge-base) diff using: 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)

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 asolimando_ndv-single-value-filter
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ asolimando_ndv-single-value-filter ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.30 / 4.51 ±6.33 / 17.16 ms │ 1.31 / 4.51 ±6.31 / 17.12 ms │ no change │
│ QQuery 1 │ 14.82 / 15.08 ±0.16 / 15.31 ms │ 14.36 / 14.61 ±0.18 / 14.87 ms │ no change │
│ QQuery 2 │ 47.25 / 47.67 ±0.32 / 48.04 ms │ 43.57 / 44.03 ±0.25 / 44.29 ms │ +1.08x faster │
│ QQuery 3 │ 42.97 / 44.72 ±1.56 / 47.65 ms │ 40.59 / 45.10 ±2.98 / 48.35 ms │ no change │
│ QQuery 4 │ 285.11 / 294.01 ±5.84 / 300.60 ms │ 290.20 / 304.16 ±13.50 / 329.26 ms │ no change │
│ QQuery 5 │ 345.83 / 348.99 ±2.80 / 353.14 ms │ 343.07 / 346.49 ±2.82 / 350.75 ms │ no change │
│ QQuery 6 │ 4.84 / 5.79 ±0.75 / 7.05 ms │ 5.63 / 6.68 ±1.19 / 8.51 ms │ 1.15x slower │
│ QQuery 7 │ 16.92 / 17.28 ±0.19 / 17.44 ms │ 16.71 / 17.21 ±0.46 / 17.97 ms │ no change │
│ QQuery 8 │ 408.57 / 418.50 ±8.65 / 432.58 ms │ 429.29 / 435.09 ±4.51 / 441.03 ms │ no change │
│ QQuery 9 │ 637.46 / 661.62 ±14.59 / 678.85 ms │ 634.84 / 637.85 ±3.42 / 644.37 ms │ no change │
│ QQuery 10 │ 91.60 / 96.13 ±3.41 / 101.56 ms │ 90.63 / 92.79 ±1.70 / 94.43 ms │ no change │
│ QQuery 11 │ 105.76 / 107.86 ±1.51 / 110.32 ms │ 103.18 / 103.83 ±0.63 / 104.99 ms │ no change │
│ QQuery 12 │ 347.53 / 356.44 ±5.27 / 363.55 ms │ 334.68 / 345.80 ±5.95 / 350.54 ms │ no change │
│ QQuery 13 │ 474.67 / 481.18 ±6.61 / 493.04 ms │ 460.77 / 470.83 ±7.02 / 479.96 ms │ no change │
│ QQuery 14 │ 348.71 / 356.56 ±4.12 / 360.69 ms │ 356.04 / 359.68 ±4.01 / 365.16 ms │ no change │
│ QQuery 15 │ 365.60 / 379.08 ±14.82 / 406.54 ms │ 363.93 / 380.84 ±23.81 / 426.19 ms │ no change │
│ QQuery 16 │ 721.78 / 752.33 ±18.89 / 773.87 ms │ 724.96 / 734.95 ±10.34 / 747.66 ms │ no change │
│ QQuery 17 │ 719.18 / 729.24 ±11.68 / 752.07 ms │ 717.14 / 722.24 ±4.95 / 731.39 ms │ no change │
│ QQuery 18 │ 1378.03 / 1418.41 ±59.98 / 1536.39 ms │ 1409.36 / 1477.19 ±48.09 / 1522.63 ms │ no change │
│ QQuery 19 │ 34.42 / 36.15 ±1.37 / 37.76 ms │ 34.51 / 37.97 ±4.06 / 45.88 ms │ 1.05x slower │
│ QQuery 20 │ 705.80 / 713.31 ±11.23 / 735.29 ms │ 721.50 / 729.24 ±7.11 / 742.53 ms │ no change │
│ QQuery 21 │ 754.98 / 757.13 ±2.19 / 760.53 ms │ 759.53 / 797.09 ±32.16 / 854.38 ms │ 1.05x slower │
│ QQuery 22 │ 1121.32 / 1128.50 ±4.82 / 1134.27 ms │ 1126.16 / 1155.89 ±25.49 / 1196.68 ms │ no change │
│ QQuery 23 │ 3046.56 / 3056.53 ±11.48 / 3077.90 ms │ 3036.89 / 3058.77 ±27.41 / 3111.52 ms │ no change │
│ QQuery 24 │ 100.21 / 102.00 ±2.00 / 105.75 ms │ 97.26 / 102.83 ±3.41 / 107.56 ms │ no change │
│ QQuery 25 │ 141.18 / 142.58 ±1.36 / 145.13 ms │ 137.69 / 140.47 ±2.27 / 144.54 ms │ no change │
│ QQuery 26 │ 99.88 / 101.91 ±1.41 / 103.41 ms │ 99.96 / 101.71 ±1.47 / 103.98 ms │ no change │
│ QQuery 27 │ 844.77 / 849.90 ±3.62 / 855.75 ms │ 846.40 / 849.63 ±2.36 / 852.40 ms │ no change │
│ QQuery 28 │ 7711.29 / 7756.25 ±26.96 / 7791.02 ms │ 7714.69 / 7836.60 ±92.47 / 7957.37 ms │ no change │
│ QQuery 29 │ 51.73 / 57.74 ±4.80 / 64.80 ms │ 51.49 / 58.45 ±8.19 / 73.70 ms │ no change │
│ QQuery 30 │ 364.13 / 371.91 ±7.17 / 382.11 ms │ 382.76 / 389.02 ±6.43 / 398.94 ms │ no change │
│ QQuery 31 │ 362.10 / 376.74 ±12.87 / 399.05 ms │ 386.64 / 414.96 ±23.98 / 449.37 ms │ 1.10x slower │
│ QQuery 32 │ 1038.58 / 1048.25 ±9.19 / 1064.98 ms │ 1277.25 / 1324.95 ±55.56 / 1433.96 ms │ 1.26x slower │
│ QQuery 33 │ 1451.46 / 1459.71 ±4.37 / 1464.08 ms │ 1605.45 / 1653.26 ±44.52 / 1734.53 ms │ 1.13x slower │
│ QQuery 34 │ 1439.77 / 1457.34 ±9.18 / 1464.89 ms │ 1584.72 / 1654.40 ±44.73 / 1719.69 ms │ 1.14x slower │
│ QQuery 35 │ 381.37 / 385.80 ±4.34 / 394.09 ms │ 416.01 / 432.43 ±8.50 / 440.48 ms │ 1.12x slower │
│ QQuery 36 │ 119.78 / 122.20 ±2.60 / 127.14 ms │ 120.87 / 127.80 ±3.81 / 131.61 ms │ no change │
│ QQuery 37 │ 50.14 / 52.18 ±1.49 / 54.14 ms │ 49.36 / 52.46 ±2.03 / 54.66 ms │ no change │
│ QQuery 38 │ 72.19 / 75.60 ±2.00 / 78.47 ms │ 75.79 / 77.83 ±1.80 / 80.73 ms │ no change │
│ QQuery 39 │ 206.23 / 214.81 ±9.08 / 230.37 ms │ 207.16 / 217.48 ±6.49 / 225.50 ms │ no change │
│ QQuery 40 │ 23.55 / 24.74 ±0.99 / 26.19 ms │ 22.75 / 26.53 ±3.14 / 32.14 ms │ 1.07x slower │
│ QQuery 41 │ 20.26 / 22.14 ±1.07 / 23.43 ms │ 20.92 / 21.59 ±0.50 / 22.43 ms │ no change │
│ QQuery 42 │ 18.86 / 19.71 ±0.60 / 20.62 ms │ 19.62 / 20.16 ±0.50 / 21.09 ms │ no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 26868.52ms │
│ Total Time (asolimando_ndv-single-value-filter) │ 27825.40ms │
│ Average Time (HEAD) │ 624.85ms │
│ Average Time (asolimando_ndv-single-value-filter) │ 647.10ms │
│ Queries Faster │ 1 │
│ Queries Slower │ 9 │
│ Queries with No Change │ 33 │
│ Queries with Failure │ 0 │
└───────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

MetricValue
Wall time135.6s
Peak memory41.8 GiB
Avg memory33.9 GiB
CPU user1280.0s
CPU sys86.9s
Peak spill0 B

clickbench_partitioned — branch

MetricValue
Wall time140.3s
Peak memory39.1 GiB
Avg memory29.2 GiB
CPU user1302.9s
CPU sys107.7s
Peak spill0 B

File an issue against this benchmark runner

@adriangb

Copy link
Copy Markdown
Contributor

Huh that's quite a bit of variability on Q32

@adriangb

Copy link
Copy Markdown
Contributor

run benchmark clickbench_partitioned

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance:c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4187445314-799-gv9nz 6.12.55+ #1 SMP Sun Feb 1 08:59:41 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 asolimando/ndv-single-value-filter (ab09466) to bc2b36c (merge-base) diff using: 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)

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 asolimando_ndv-single-value-filter
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ HEAD ┃ asolimando_ndv-single-value-filter ┃ Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0 │ 1.28 / 4.51 ±6.32 / 17.15 ms │ 1.29 / 4.60 ±6.44 / 17.48 ms │ no change │
│ QQuery 1 │ 14.65 / 14.89 ±0.14 / 15.03 ms │ 14.35 / 14.90 ±0.30 / 15.23 ms │ no change │
│ QQuery 2 │ 43.85 / 44.45 ±0.37 / 44.76 ms │ 46.64 / 46.82 ±0.23 / 47.28 ms │ 1.05x slower │
│ QQuery 3 │ 42.29 / 43.85 ±1.39 / 46.43 ms │ 43.03 / 45.00 ±1.44 / 46.80 ms │ no change │
│ QQuery 4 │ 293.27 / 300.00 ±5.26 / 307.17 ms │ 300.23 / 303.50 ±2.76 / 307.21 ms │ no change │
│ QQuery 5 │ 349.43 / 352.66 ±2.43 / 355.37 ms │ 348.59 / 355.89 ±6.35 / 367.43 ms │ no change │
│ QQuery 6 │ 5.75 / 9.09 ±3.25 / 14.44 ms │ 6.47 / 7.60 ±1.13 / 9.30 ms │ +1.20x faster │
│ QQuery 7 │ 16.99 / 17.14 ±0.11 / 17.31 ms │ 17.34 / 20.27 ±4.59 / 29.37 ms │ 1.18x slower │
│ QQuery 8 │ 420.01 / 435.25 ±11.35 / 454.03 ms │ 446.58 / 452.16 ±5.56 / 462.02 ms │ no change │
│ QQuery 9 │ 640.40 / 654.19 ±7.40 / 661.56 ms │ 672.12 / 678.42 ±5.50 / 685.61 ms │ no change │
│ QQuery 10 │ 92.53 / 95.42 ±2.18 / 97.92 ms │ 92.50 / 94.49 ±3.16 / 100.78 ms │ no change │
│ QQuery 11 │ 104.99 / 105.51 ±0.50 / 106.47 ms │ 104.21 / 105.10 ±0.51 / 105.70 ms │ no change │
│ QQuery 12 │ 348.33 / 355.99 ±4.78 / 361.95 ms │ 350.22 / 358.07 ±6.69 / 365.85 ms │ no change │
│ QQuery 13 │ 458.73 / 484.41 ±13.32 / 495.02 ms │ 475.28 / 495.27 ±14.43 / 511.60 ms │ no change │
│ QQuery 14 │ 351.96 / 357.52 ±4.46 / 363.00 ms │ 355.00 / 363.39 ±4.80 / 367.54 ms │ no change │
│ QQuery 15 │ 359.89 / 373.99 ±15.00 / 402.71 ms │ 371.41 / 387.39 ±17.11 / 420.27 ms │ no change │
│ QQuery 16 │ 733.74 / 750.75 ±14.12 / 770.28 ms │ 731.99 / 750.54 ±19.38 / 787.64 ms │ no change │
│ QQuery 17 │ 745.52 / 770.83 ±22.79 / 811.62 ms │ 719.90 / 747.25 ±27.60 / 797.62 ms │ no change │
│ QQuery 18 │ 1372.74 / 1442.78 ±42.71 / 1486.43 ms │ 1479.20 / 1520.48 ±35.03 / 1573.00 ms │ 1.05x slower │
│ QQuery 19 │ 34.64 / 37.10 ±2.40 / 41.47 ms │ 35.81 / 44.38 ±15.26 / 74.82 ms │ 1.20x slower │
│ QQuery 20 │ 704.79 / 719.32 ±13.65 / 740.02 ms │ 718.08 / 731.69 ±19.28 / 768.73 ms │ no change │
│ QQuery 21 │ 757.39 / 759.80 ±1.94 / 762.16 ms │ 765.78 / 776.78 ±12.11 / 799.74 ms │ no change │
│ QQuery 22 │ 1125.47 / 1132.53 ±8.37 / 1147.38 ms │ 1130.55 / 1141.34 ±12.44 / 1164.76 ms │ no change │
│ QQuery 23 │ 3111.28 / 3122.79 ±15.61 / 3152.52 ms │ 3080.81 / 3106.54 ±23.24 / 3147.28 ms │ no change │
│ QQuery 24 │ 103.44 / 105.08 ±2.24 / 109.42 ms │ 100.83 / 105.01 ±2.15 / 106.77 ms │ no change │
│ QQuery 25 │ 140.01 / 141.93 ±1.79 / 144.70 ms │ 139.31 / 142.22 ±1.96 / 144.85 ms │ no change │
│ QQuery 26 │ 100.62 / 103.52 ±1.98 / 106.00 ms │ 100.55 / 102.57 ±1.89 / 105.79 ms │ no change │
│ QQuery 27 │ 847.57 / 855.00 ±7.93 / 869.99 ms │ 852.68 / 861.24 ±7.56 / 872.18 ms │ no change │
│ QQuery 28 │ 7686.52 / 7775.93 ±48.45 / 7831.39 ms │ 7705.29 / 7796.90 ±58.69 / 7881.92 ms │ no change │
│ QQuery 29 │ 50.76 / 53.60 ±2.40 / 56.27 ms │ 51.49 / 55.21 ±2.89 / 59.52 ms │ no change │
│ QQuery 30 │ 376.06 / 378.22 ±2.67 / 383.45 ms │ 361.47 / 375.82 ±10.28 / 391.90 ms │ no change │
│ QQuery 31 │ 382.88 / 394.42 ±9.94 / 407.83 ms │ 361.96 / 379.96 ±11.74 / 393.61 ms │ no change │
│ QQuery 32 │ 1053.72 / 1066.37 ±12.12 / 1082.65 ms │ 1056.37 / 1071.32 ±11.80 / 1087.92 ms │ no change │
│ QQuery 33 │ 1476.35 / 1488.76 ±12.39 / 1509.29 ms │ 1473.68 / 1495.71 ±14.62 / 1511.25 ms │ no change │
│ QQuery 34 │ 1499.04 / 1528.43 ±16.01 / 1547.07 ms │ 1480.36 / 1489.10 ±8.81 / 1506.05 ms │ no change │
│ QQuery 35 │ 402.96 / 418.12 ±8.32 / 428.51 ms │ 402.84 / 408.78 ±7.91 / 423.79 ms │ no change │
│ QQuery 36 │ 123.66 / 126.07 ±1.39 / 127.87 ms │ 122.39 / 127.24 ±2.97 / 131.16 ms │ no change │
│ QQuery 37 │ 49.15 / 51.17 ±1.57 / 53.16 ms │ 49.06 / 50.10 ±0.84 / 50.99 ms │ no change │
│ QQuery 38 │ 75.12 / 77.67 ±1.48 / 79.28 ms │ 76.84 / 78.06 ±1.38 / 80.50 ms │ no change │
│ QQuery 39 │ 214.98 / 221.53 ±4.43 / 228.42 ms │ 211.63 / 222.66 ±7.73 / 232.64 ms │ no change │
│ QQuery 40 │ 24.31 / 25.39 ±0.93 / 26.75 ms │ 22.80 / 27.78 ±4.07 / 32.78 ms │ 1.09x slower │
│ QQuery 41 │ 21.43 / 22.86 ±1.28 / 24.46 ms │ 20.05 / 20.82 ±0.71 / 21.68 ms │ +1.10x faster │
│ QQuery 42 │ 19.89 / 20.73 ±1.01 / 22.66 ms │ 19.46 / 20.11 ±0.43 / 20.77 ms │ no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary ┃ ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD) │ 27239.59ms │
│ Total Time (asolimando_ndv-single-value-filter) │ 27382.42ms │
│ Average Time (HEAD) │ 633.48ms │
│ Average Time (asolimando_ndv-single-value-filter) │ 636.80ms │
│ Queries Faster │ 2 │
│ Queries Slower │ 5 │
│ Queries with No Change │ 36 │
│ Queries with Failure │ 0 │
└───────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

MetricValue
Wall time137.4s
Peak memory39.9 GiB
Avg memory33.3 GiB
CPU user1295.2s
CPU sys89.6s
Peak spill0 B

clickbench_partitioned — branch

MetricValue
Wall time138.1s
Peak memory43.2 GiB
Avg memory30.7 GiB
CPU user1298.6s
CPU sys92.4s
Peak spill0 B

File an issue against this benchmark runner

@adriangb

adriangb commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

The benchmark runners are not usually this noisy - not sure what's going on there. But nothing egregious, I don't think it's related to this PR. I think we can merge this.

@adriangb
adriangb enabled auto-merge April 4, 2026 18:50
@xudong963
xudong963 disabled auto-merge April 7, 2026 08:15
@xudong963
xudong963 enabled auto-merge April 7, 2026 08:15
@xudong963
xudong963 added this pull request to the merge queueApr 7, 2026
Merged via the queue into apache:main with commit a4b945eApr 7, 2026
34 checks passed
@asolimando
asolimando deleted the asolimando/ndv-single-value-filter branch April 7, 2026 09:35
Dandandan pushed a commit to Dandandan/arrow-datafusion that referenced this pull request Apr 8, 2026
…che#21077)
## Which issue does this PR close?
- Part of apache#20766
Related: apache#20789 (uses NDV for equality filter selectivity, complementary
- this PR improves the NDV output stats, that PR consumes them)
## Rationale for this change
When a filter predicate collapses a column interval to a single value
(e.g. `d_qoy = 1`), the output column can only have one distinct value.
Currently `distinct_count` is always demoted to `Inexact`, losing this
information.
This matters for downstream optimizers that rely on `distinct_count`,
such as join cardinality estimation in
`estimate_inner_join_cardinality`.
## What changes are included in this PR?
In `collect_new_statistics` (filter.rs), when the post-filter interval
has `lower == upper` (both non-null), set `distinct_count` to
`Precision::Exact(1)` instead of demoting the input NDV to `Inexact`.
## Are these changes tested?
Yes, 4 unit tests:
- Equality predicate (`a = 42`) -> NDV becomes `Exact(1)`
- OR predicate (`a = 42 OR a = 22`) -> interval does not collapse, NDV
stays `Inexact`
- AND with mixed predicates (`a = 42 AND b > 10 AND c = 7`) -> `a` and
`c` get `Exact(1)`, `b` stays `Inexact`
- Equality with absent bounds (`a = 42`, no min/max) -> interval
analysis still resolves to `Exact(1)`
## Are there any user-facing changes?
No breaking changes. Statistics consumers will now see `Exact(1)` for
`distinct_count` on columns constrained to a single value by filter
predicates.
Disclaimer: I used AI to assist in the code generation, I have manually
reviewed the output and it matches my intention and understanding.
---------
Co-authored-by: xudong.w <wxd963996380@gmail.com>
Rich-T-kid pushed a commit to Rich-T-kid/datafusion that referenced this pull request Apr 21, 2026
…che#21077)
## Which issue does this PR close?
- Part of apache#20766
Related: apache#20789 (uses NDV for equality filter selectivity, complementary
- this PR improves the NDV output stats, that PR consumes them)
## Rationale for this change
When a filter predicate collapses a column interval to a single value
(e.g. `d_qoy = 1`), the output column can only have one distinct value.
Currently `distinct_count` is always demoted to `Inexact`, losing this
information.
This matters for downstream optimizers that rely on `distinct_count`,
such as join cardinality estimation in
`estimate_inner_join_cardinality`.
## What changes are included in this PR?
In `collect_new_statistics` (filter.rs), when the post-filter interval
has `lower == upper` (both non-null), set `distinct_count` to
`Precision::Exact(1)` instead of demoting the input NDV to `Inexact`.
## Are these changes tested?
Yes, 4 unit tests:
- Equality predicate (`a = 42`) -> NDV becomes `Exact(1)`
- OR predicate (`a = 42 OR a = 22`) -> interval does not collapse, NDV
stays `Inexact`
- AND with mixed predicates (`a = 42 AND b > 10 AND c = 7`) -> `a` and
`c` get `Exact(1)`, `b` stays `Inexact`
- Equality with absent bounds (`a = 42`, no min/max) -> interval
analysis still resolves to `Exact(1)`
## Are there any user-facing changes?
No breaking changes. Statistics consumers will now see `Exact(1)` for
`distinct_count` on columns constrained to a single value by filter
predicates.
Disclaimer: I used AI to assist in the code generation, I have manually
reviewed the output and it matches my intention and understanding.
---------
Co-authored-by: xudong.w <wxd963996380@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-planChanges to the physical-plan cratesqllogictestSQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@asolimando@Dandandan@adriangbot@adriangb@xudong963