Skip to content

refactor(physical-plan): extract make_group_column factory + eager init at try_new + tighten Time variants#22751

Open
zhuqi-lucas wants to merge 1 commit into
apache:mainfrom
zhuqi-lucas:qizhu/df-group-column-refactor
Open

refactor(physical-plan): extract make_group_column factory + eager init at try_new + tighten Time variants#22751
zhuqi-lucas wants to merge 1 commit into
apache:mainfrom
zhuqi-lucas:qizhu/df-group-column-refactor

Conversation

@zhuqi-lucas
Copy link
Copy Markdown
Contributor

@zhuqi-lucas zhuqi-lucas commented Jun 4, 2026

Which issue does this PR close?

PR 1 of 5 from the split agreed on #22706 (comment). Related to #22682 / #22715 (full GroupValuesColumn type coverage). Lays the dispatcher foundation; closes nothing on its own.

Rationale for this change

Preparation for the nested-type GroupColumn work. No new builders here. The goal is to refactor the per-field builder dispatch in GroupValuesColumn so subsequent PRs that add FixedSizeList / Struct / List / LargeList support can plug into one well-defined factory instead of growing the inline match in GroupValuesColumn::intern. Also includes two adjacent correctness fixes around the Time32 / Time64 variants that came up in the upstream thread.

What changes are included in this PR

  1. Factory extraction. The inline match that maps each schema field to a Box<dyn GroupColumn> builder moves out of GroupValuesColumn::intern into a free function make_group_column(field: &Field) -> Result<Box<dyn GroupColumn>>. Subsequent nested-type specializations can recursively call this factory for child field construction without enumerating every combination inline.

  2. Eager construction at try_new. Per @2010YOUY01's review, the per-field builder vector is now built in the constructor via a private build_group_columns helper. emit(EmitTo::All) uses mem::replace to swap in a fresh vector after draining the old one; clear_shrink rebuilds the same way. The post-condition self.group_values.len() == self.schema.fields().len() holds across the aggregator's lifetime, so intern no longer carries a lazy-init branch. Unsupported schemas now fail fast at try_new rather than at the first intern call. In production this changes nothing because new_group_values in aggregates/group_values/mod.rs only calls GroupValuesColumn::try_new after multi_group_by::supported_schema returns true.

  3. Time32 / Time64 supported_type alignment. Previously supported_type matched Time32(_) (admitting the invalid Microsecond / Nanosecond combinations) and did not match Time64(_) at all, while the dispatcher accepted Time32(Second / Millisecond) and Time64(Microsecond / Nanosecond). Tighten supported_type to the exact set the dispatcher constructs. The dispatcher's wildcard arms for invalid Time variants now return not_impl_err instead of silently producing an empty builder vector.

  4. supported_typemake_group_column consistency fuzz. New unit test supported_type_and_make_group_column_stay_in_sync iterates a representative set of 20 supported and 6 unsupported DataType values and asserts the biconditional. Pins the alignment so future contributors who add a type to one side without the other trip a unit test immediately.

What this PR is NOT doing

Are these changes tested

  • cargo test -p datafusion-physical-plan --lib aggregates::group_values: 30 tests pass (27 existing + 3 new: the consistency fuzz, the mixed-schema rejection, and the try_new-time NotImpl propagation).
  • cargo test -p datafusion-physical-plan --lib aggregates: 105 tests pass (no regression in the broader aggregate suite).
  • cargo clippy -p datafusion-physical-plan --lib --tests -- -D warnings: clean.
  • cargo fmt --check: clean.

Are there any user-facing changes

No semantic change for any schema that already used GroupValuesColumn on main. The factory is the same dispatch logic pulled into a function; the Time changes only affect schemas that are semantically invalid Arrow types anyway; the eager construction surfaces not_impl_err from a different call site for those defensive paths.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors GroupValuesColumn’s per-field builder dispatch into a dedicated make_group_column factory to make upcoming nested-type GroupColumn work easier to extend, tightens Time32/Time64 variant allow-listing to match Arrow-valid combinations, and adds feature-gated heap regression testing via dhat.

Changes:

  • Extracted GroupValuesColumn::intern’s type dispatch into make_group_column(field: &Field) -> Result<Box<dyn GroupColumn>>.
  • Aligned supported_type with the exact Time32/Time64 combinations actually supported, and added tests to pin supported_type ↔ dispatcher consistency.
  • Added optional dhat-heap feature with a dhat-based heap regression harness.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
datafusion/physical-plan/src/lib.rs Adds feature-gated dhat global allocator wiring for heap profiling.
datafusion/physical-plan/src/aggregates/group_values/multi_group_by/mod.rs Extracts make_group_column, tightens time-type handling, adds sync tests and dhat heap regression test module.
datafusion/physical-plan/Cargo.toml Introduces dhat-heap feature and optional dhat dependency.
Cargo.lock Locks newly introduced transitive dependencies from dhat.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread datafusion/physical-plan/src/lib.rs Outdated
Comment thread datafusion/physical-plan/src/aggregates/group_values/multi_group_by/mod.rs Outdated
@zhuqi-lucas zhuqi-lucas force-pushed the qizhu/df-group-column-refactor branch 2 times, most recently from fb7de55 to 5c9cbc8 Compare June 4, 2026 07:26
Copy link
Copy Markdown
Contributor

@2010YOUY01 2010YOUY01 left a comment

Choose a reason for hiding this comment

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

Thank you for working on this.

Since part of the motivation is to reduce large memory consumption, you might also be interested in:

The TL;DR is that we currently allocate a large contiguous Vec in GroupValues. This keeps memory for groups in the partial aggregation stage resident until the final aggregation finishes.

I think this PR can reduce memory usage by roughly half, and the work mentioned above could save another ~2x in the worst case.

return not_impl_err!("{dt} not supported in GroupValuesColumn");
}
}
v.push(make_group_column(f.as_ref())?);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the right refactor is moving this GroupValues initialization into the constructor?
Lazily initializing a field during the evaluation is a bit unusual.

Copy link
Copy Markdown
Contributor Author

@zhuqi-lucas zhuqi-lucas Jun 4, 2026

Choose a reason for hiding this comment

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

Good point @2010YOUY01 , addressed. Moved the per-field builder construction into a private helper build_group_columns and now call it from three places: try_new (initial construction), the EmitTo::All branch of emit (replaces the drained Vec with a fresh one via mem::replace), and clear_shrink (rebuilds after the Vec is cleared). intern no longer has the lazy if-empty check.

One consequence is that an unsupported schema now fails at try_new time instead of at the first intern call. In production this changes nothing because the new_group_values factory in aggregates/group_values/mod.rs only calls GroupValuesColumn::try_new after multi_group_by::supported_schema returns true, and unsupported schemas still fall back to GroupValuesRows. The fail-fast just surfaces a programming error sooner for callers that bypass the factory.

Updated the unit test from intern_returns_not_impl_for_unsupported_top_level_type to try_new_returns_not_impl_for_unsupported_top_level_type. 30 group_values tests + dhat test still pass.

@zhuqi-lucas zhuqi-lucas force-pushed the qizhu/df-group-column-refactor branch from 5c9cbc8 to 73cb7e8 Compare June 4, 2026 07:58
Comment thread datafusion/physical-plan/Cargo.toml Outdated
datafusion-physical-expr-common = { workspace = true }
datafusion-proto-common = { workspace = true, optional = true }
datafusion-proto-models = { workspace = true, optional = true }
# Optional heap profiler used by the `dhat-heap` feature for memory
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I am super worried about the long term cost of this dependency :

The crates page in https://crates.io/crates/dhat says

Warning: This crate is experimental. It relies on implementation techniques that are hard to keep working for 100% of configurations. It may work fine for you, or it may crash, hang, or otherwise do the wrong thing. Its maintenance is not a high priority of the author. Support requests such as issues and pull requests may receive slow responses, or no response at all. Sorry!

It also seems like the tests that need this are not actually run in CI / automatically

Do we really need to add it in this PR?

Maybe we can keep the profiling tests in their own branch or something and run them manually (or in an outside repo)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point @alamb, thanks for review, I agree. The dhat dep is shaky to take on upstream when the tests it backs are not in CI. Will drop the dhat-heap feature, the dhat dependency, the global_allocator wiring in lib.rs, and the dhat_tests.

The factory extraction, the Time32 / Time64 supported_type tightening, and the supported_type / make_group_column consistency fuzz test will all stay.

For the subsequent PRs in the #22706 split (FixedSizeList, Struct, List, LargeList, composition tests), I will measure memory savings via GroupColumn::size() head-to-head against GroupValuesRows (the
pattern that #22706 already uses for column_path_uses_less_memory_than_rows_for_* tests). Those run in normal cargo test so they will be exercised by CI.

The dhat-based profiling will live on my local for manual investigation only. And later, we can add those to example or benchmark.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated, removed the dhat related testing in latest PR.

@zhuqi-lucas zhuqi-lucas force-pushed the qizhu/df-group-column-refactor branch from 73cb7e8 to 0f39e06 Compare June 4, 2026 11:23
…Time variants

Preparation PR for apache#22682 / apache#22715 (full GroupValuesColumn type
coverage). No new builders; this PR only refactors the dispatch so
subsequent PRs that add FixedSizeList / Struct / List support can plug
into one well-defined factory instead of growing the inline match in
GroupValuesColumn::intern, and tightens the Time32 / Time64 variant
allow-listing to match the actually-supported Arrow combinations.

## What changed

1. Factory extraction. The inline match in GroupValuesColumn::intern
   that maps each schema field to a Box<dyn GroupColumn> builder moves
   into a free function make_group_column(field: &Field). The eager
   construction now happens at try_new time, so per-field builders are
   ready before any intern call and any unsupported schema fails fast.
   emit(EmitTo::All) and clear_shrink both refresh the builder vector
   via the same helper so the post-condition (one builder per schema
   field) holds across the aggregator's lifetime.

2. Time32 / Time64 supported_type alignment. Previously supported_type
   matched Time32(_) (admitting the invalid Microsecond / Nanosecond
   combinations) and did not match Time64(_) at all. Tighten
   supported_type to the exact set the dispatcher constructs. The
   dispatcher's wildcard arms for invalid Time variants now return
   not_impl_err instead of silently producing an empty builder vector.

3. supported_type ↔ make_group_column consistency fuzz. New unit test
   iterates a representative set of 20 supported and 6 unsupported
   DataType values and asserts the biconditional. Pins the alignment
   so future contributors who add a type to one side without the
   other trip a unit test immediately.
@zhuqi-lucas zhuqi-lucas force-pushed the qizhu/df-group-column-refactor branch from 0f39e06 to 1c0f4d0 Compare June 4, 2026 11:25
@zhuqi-lucas zhuqi-lucas changed the title refactor(physical-plan): extract make_group_column factory + tighten Time variants + dhat harness refactor(physical-plan): extract make_group_column factory + eager init at try_new + tighten Time variants Jun 4, 2026
Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

This seems like a nice refactor to me -- thanks @zhuqi-lucas

I'll kick off the benchmarks just to make sure we didn't slow something down by accident

/// constructs a builder for. The
/// `supported_type_and_make_group_column_stay_in_sync` test below pins
/// this biconditional.
fn supported_type(data_type: &DataType) -> bool {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe we coul also make this function named something that reflects it is gating make_group_column -- somthing like group_column_supported_type and move it closer to make_group_column 🤔

@alamb
Copy link
Copy Markdown
Contributor

alamb commented Jun 8, 2026

run benchmarks

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4650511910-479-mg6tj 6.12.68+ #1 SMP Sat May 2 07:49:07 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 qizhu/df-group-column-refactor (1c0f4d0) to f033199 (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-c4650511910-480-mspqr 6.12.68+ #1 SMP Sat May 2 07:49:07 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 qizhu/df-group-column-refactor (1c0f4d0) to f033199 (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 running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4650511910-481-r7zvs 6.12.68+ #1 SMP Sat May 2 07:49:07 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 qizhu/df-group-column-refactor (1c0f4d0) to f033199 (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 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 qizhu_df-group-column-refactor
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃ qizhu_df-group-column-refactor ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │ 38.38 / 39.20 ±0.97 / 40.96 ms │ 38.19 / 39.49 ±1.27 / 41.11 ms │     no change │
│ QQuery 2  │ 18.65 / 18.86 ±0.26 / 19.37 ms │ 18.36 / 18.80 ±0.26 / 19.09 ms │     no change │
│ QQuery 3  │ 30.73 / 32.85 ±1.38 / 34.39 ms │ 30.78 / 32.30 ±1.13 / 33.66 ms │     no change │
│ QQuery 4  │ 17.39 / 17.93 ±0.66 / 19.13 ms │ 17.35 / 17.63 ±0.51 / 18.64 ms │     no change │
│ QQuery 5  │ 37.15 / 39.36 ±2.11 / 43.12 ms │ 37.61 / 39.24 ±1.11 / 40.29 ms │     no change │
│ QQuery 6  │ 16.12 / 16.25 ±0.12 / 16.43 ms │ 16.12 / 16.81 ±0.78 / 18.33 ms │     no change │
│ QQuery 7  │ 43.12 / 44.97 ±1.70 / 47.40 ms │ 43.50 / 45.07 ±1.11 / 46.23 ms │     no change │
│ QQuery 8  │ 42.74 / 43.04 ±0.22 / 43.33 ms │ 43.09 / 43.88 ±0.67 / 44.74 ms │     no change │
│ QQuery 9  │ 50.34 / 51.99 ±2.49 / 56.92 ms │ 49.26 / 49.94 ±0.58 / 50.82 ms │     no change │
│ QQuery 10 │ 42.21 / 43.05 ±1.06 / 45.12 ms │ 42.05 / 42.59 ±0.76 / 44.10 ms │     no change │
│ QQuery 11 │ 13.17 / 13.30 ±0.12 / 13.49 ms │ 13.25 / 13.90 ±0.67 / 14.90 ms │     no change │
│ QQuery 12 │ 23.67 / 24.19 ±0.52 / 25.13 ms │ 23.56 / 23.97 ±0.38 / 24.50 ms │     no change │
│ QQuery 13 │ 32.56 / 34.99 ±3.17 / 41.09 ms │ 32.56 / 33.97 ±0.96 / 35.20 ms │     no change │
│ QQuery 14 │ 23.85 / 25.37 ±1.81 / 28.56 ms │ 23.59 / 23.83 ±0.16 / 24.06 ms │ +1.06x faster │
│ QQuery 15 │ 31.21 / 31.41 ±0.15 / 31.62 ms │ 31.07 / 32.11 ±1.36 / 34.78 ms │     no change │
│ QQuery 16 │ 14.10 / 14.32 ±0.14 / 14.51 ms │ 13.91 / 14.24 ±0.17 / 14.37 ms │     no change │
│ QQuery 17 │ 73.55 / 74.42 ±0.94 / 76.13 ms │ 73.14 / 74.27 ±0.83 / 75.55 ms │     no change │
│ QQuery 18 │ 58.04 / 59.83 ±1.03 / 60.78 ms │ 58.12 / 60.47 ±1.21 / 61.37 ms │     no change │
│ QQuery 19 │ 33.02 / 33.80 ±0.81 / 34.83 ms │ 32.64 / 33.56 ±0.80 / 34.54 ms │     no change │
│ QQuery 20 │ 32.28 / 33.42 ±1.17 / 35.63 ms │ 31.73 / 32.36 ±0.93 / 34.16 ms │     no change │
│ QQuery 21 │ 55.52 / 56.27 ±0.52 / 56.96 ms │ 54.37 / 56.67 ±1.40 / 58.22 ms │     no change │
│ QQuery 22 │ 13.98 / 14.22 ±0.20 / 14.48 ms │ 13.78 / 13.98 ±0.15 / 14.21 ms │     no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                             ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                             │ 763.06ms │
│ Total Time (qizhu_df-group-column-refactor)   │ 759.07ms │
│ Average Time (HEAD)                           │  34.68ms │
│ Average Time (qizhu_df-group-column-refactor) │  34.50ms │
│ Queries Faster                                │        1 │
│ Queries Slower                                │        0 │
│ Queries with No Change                        │       21 │
│ Queries with Failure                          │        0 │
└───────────────────────────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 5.7 GiB
Avg memory 4.9 GiB
CPU user 29.7s
CPU sys 2.4s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 5.6 GiB
Avg memory 4.9 GiB
CPU user 29.8s
CPU sys 2.2s
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)

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 qizhu_df-group-column-refactor
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃        qizhu_df-group-column-refactor ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           5.87 / 6.39 ±0.85 / 8.09 ms │           6.02 / 6.51 ±0.83 / 8.16 ms │     no change │
│ QQuery 2  │        80.26 / 80.48 ±0.13 / 80.64 ms │        81.86 / 82.05 ±0.12 / 82.21 ms │     no change │
│ QQuery 3  │        28.80 / 29.19 ±0.23 / 29.46 ms │        28.86 / 29.19 ±0.29 / 29.71 ms │     no change │
│ QQuery 4  │     483.51 / 493.90 ±6.67 / 503.67 ms │     485.48 / 495.82 ±6.64 / 505.49 ms │     no change │
│ QQuery 5  │        52.30 / 53.06 ±0.51 / 53.71 ms │        51.73 / 52.52 ±0.87 / 54.11 ms │     no change │
│ QQuery 6  │        36.65 / 37.07 ±0.30 / 37.59 ms │        36.05 / 36.85 ±0.50 / 37.33 ms │     no change │
│ QQuery 7  │        95.50 / 96.21 ±0.77 / 97.57 ms │        95.61 / 96.19 ±0.61 / 97.28 ms │     no change │
│ QQuery 8  │        37.44 / 39.13 ±2.68 / 44.46 ms │        37.17 / 39.49 ±3.98 / 47.43 ms │     no change │
│ QQuery 9  │        52.10 / 54.64 ±2.41 / 58.80 ms │        53.58 / 55.29 ±1.22 / 57.39 ms │     no change │
│ QQuery 10 │        68.14 / 68.80 ±0.39 / 69.21 ms │        68.89 / 69.08 ±0.13 / 69.25 ms │     no change │
│ QQuery 11 │     299.74 / 307.70 ±8.11 / 320.83 ms │     297.14 / 302.30 ±4.18 / 308.20 ms │     no change │
│ QQuery 12 │        28.50 / 29.06 ±0.44 / 29.61 ms │        28.20 / 28.77 ±0.52 / 29.55 ms │     no change │
│ QQuery 13 │     118.45 / 120.22 ±1.80 / 123.65 ms │     120.29 / 121.10 ±0.84 / 122.63 ms │     no change │
│ QQuery 14 │     408.46 / 414.76 ±4.91 / 420.98 ms │     415.41 / 417.26 ±1.28 / 418.69 ms │     no change │
│ QQuery 15 │        57.80 / 58.56 ±0.56 / 59.32 ms │        58.41 / 58.91 ±0.31 / 59.36 ms │     no change │
│ QQuery 16 │           6.72 / 6.96 ±0.27 / 7.48 ms │           6.79 / 6.93 ±0.13 / 7.16 ms │     no change │
│ QQuery 17 │        80.54 / 81.60 ±1.83 / 85.24 ms │        80.38 / 81.68 ±1.68 / 84.95 ms │     no change │
│ QQuery 18 │     124.73 / 127.34 ±3.60 / 134.48 ms │     125.77 / 127.58 ±1.30 / 129.16 ms │     no change │
│ QQuery 19 │        41.68 / 41.94 ±0.22 / 42.30 ms │        41.68 / 42.18 ±0.38 / 42.82 ms │     no change │
│ QQuery 20 │        35.49 / 36.01 ±0.38 / 36.54 ms │        35.40 / 36.78 ±1.47 / 39.25 ms │     no change │
│ QQuery 21 │        16.95 / 17.47 ±0.42 / 18.10 ms │        16.96 / 17.05 ±0.13 / 17.31 ms │     no change │
│ QQuery 22 │        62.28 / 63.50 ±1.04 / 65.35 ms │        62.54 / 63.07 ±0.31 / 63.45 ms │     no change │
│ QQuery 23 │     343.00 / 346.95 ±3.44 / 352.41 ms │     343.52 / 347.90 ±4.26 / 354.61 ms │     no change │
│ QQuery 24 │     222.55 / 225.43 ±3.07 / 230.62 ms │     223.57 / 227.95 ±5.50 / 238.16 ms │     no change │
│ QQuery 25 │     110.08 / 110.72 ±0.91 / 112.44 ms │     111.04 / 112.29 ±0.77 / 113.35 ms │     no change │
│ QQuery 26 │        58.36 / 60.46 ±2.47 / 64.19 ms │        59.03 / 61.98 ±2.11 / 64.81 ms │     no change │
│ QQuery 27 │           6.76 / 6.93 ±0.17 / 7.25 ms │           6.84 / 6.98 ±0.22 / 7.41 ms │     no change │
│ QQuery 28 │        56.28 / 59.93 ±1.86 / 61.25 ms │        56.68 / 60.65 ±2.10 / 62.14 ms │     no change │
│ QQuery 29 │        96.93 / 97.41 ±0.32 / 97.86 ms │       97.12 / 99.44 ±2.16 / 103.53 ms │     no change │
│ QQuery 30 │        32.73 / 33.31 ±0.58 / 34.34 ms │        32.49 / 33.94 ±2.19 / 38.29 ms │     no change │
│ QQuery 31 │     111.19 / 114.48 ±4.91 / 124.13 ms │     111.16 / 112.10 ±0.81 / 113.23 ms │     no change │
│ QQuery 32 │        19.94 / 20.21 ±0.29 / 20.77 ms │        19.98 / 20.57 ±0.57 / 21.55 ms │     no change │
│ QQuery 33 │        38.22 / 38.67 ±0.26 / 38.94 ms │        38.67 / 38.91 ±0.17 / 39.17 ms │     no change │
│ QQuery 34 │           9.40 / 9.64 ±0.19 / 9.87 ms │          9.28 / 9.67 ±0.29 / 10.12 ms │     no change │
│ QQuery 35 │        76.36 / 77.78 ±1.56 / 80.76 ms │        77.28 / 78.73 ±2.13 / 82.90 ms │     no change │
│ QQuery 36 │           5.96 / 6.11 ±0.19 / 6.50 ms │           5.96 / 6.09 ±0.15 / 6.39 ms │     no change │
│ QQuery 37 │           6.81 / 6.96 ±0.09 / 7.08 ms │           7.02 / 7.07 ±0.04 / 7.13 ms │     no change │
│ QQuery 38 │        62.74 / 63.64 ±1.02 / 65.12 ms │        63.32 / 64.14 ±0.82 / 65.42 ms │     no change │
│ QQuery 39 │     447.58 / 454.72 ±5.95 / 461.13 ms │     453.49 / 462.97 ±8.82 / 476.51 ms │     no change │
│ QQuery 40 │        23.09 / 24.47 ±2.19 / 28.82 ms │        23.10 / 23.47 ±0.25 / 23.87 ms │     no change │
│ QQuery 41 │        11.35 / 11.46 ±0.18 / 11.81 ms │        11.17 / 11.39 ±0.19 / 11.65 ms │     no change │
│ QQuery 42 │        23.94 / 24.49 ±0.60 / 25.64 ms │        23.72 / 23.96 ±0.22 / 24.28 ms │     no change │
│ QQuery 43 │           4.84 / 4.98 ±0.14 / 5.23 ms │           4.86 / 4.93 ±0.11 / 5.15 ms │     no change │
│ QQuery 44 │        10.57 / 10.67 ±0.07 / 10.78 ms │        10.66 / 10.74 ±0.11 / 10.94 ms │     no change │
│ QQuery 45 │        38.16 / 38.53 ±0.26 / 38.92 ms │        38.12 / 38.38 ±0.23 / 38.77 ms │     no change │
│ QQuery 46 │        11.62 / 11.78 ±0.13 / 12.00 ms │        11.38 / 11.63 ±0.26 / 12.13 ms │     no change │
│ QQuery 47 │     227.82 / 231.70 ±4.38 / 239.52 ms │     228.62 / 232.24 ±3.48 / 236.73 ms │     no change │
│ QQuery 48 │       96.66 / 99.33 ±2.14 / 102.75 ms │        97.34 / 98.07 ±0.84 / 99.35 ms │     no change │
│ QQuery 49 │        76.80 / 77.61 ±0.66 / 78.68 ms │        78.44 / 78.81 ±0.42 / 79.53 ms │     no change │
│ QQuery 50 │        59.20 / 59.89 ±0.59 / 60.90 ms │        60.04 / 62.09 ±2.29 / 65.90 ms │     no change │
│ QQuery 51 │       93.01 / 96.89 ±6.22 / 109.30 ms │        93.51 / 94.52 ±1.53 / 97.53 ms │     no change │
│ QQuery 52 │        24.19 / 24.65 ±0.29 / 25.08 ms │        23.90 / 24.15 ±0.25 / 24.60 ms │     no change │
│ QQuery 53 │        29.28 / 29.49 ±0.24 / 29.94 ms │        29.30 / 29.56 ±0.28 / 30.06 ms │     no change │
│ QQuery 54 │        55.54 / 56.66 ±1.56 / 59.75 ms │        55.78 / 58.48 ±2.91 / 62.43 ms │     no change │
│ QQuery 55 │        23.55 / 25.15 ±2.44 / 30.00 ms │        23.28 / 23.75 ±0.38 / 24.43 ms │ +1.06x faster │
│ QQuery 56 │        38.84 / 39.42 ±0.73 / 40.73 ms │        38.93 / 39.47 ±0.40 / 40.06 ms │     no change │
│ QQuery 57 │     175.45 / 177.04 ±2.11 / 181.19 ms │     175.47 / 178.06 ±2.43 / 182.55 ms │     no change │
│ QQuery 58 │     114.72 / 115.69 ±0.68 / 116.50 ms │     115.69 / 116.71 ±0.71 / 117.37 ms │     no change │
│ QQuery 59 │     117.92 / 119.41 ±1.92 / 123.12 ms │     117.55 / 119.07 ±2.17 / 123.36 ms │     no change │
│ QQuery 60 │        39.11 / 39.68 ±0.36 / 40.09 ms │        39.68 / 40.09 ±0.30 / 40.45 ms │     no change │
│ QQuery 61 │        13.04 / 13.23 ±0.25 / 13.67 ms │        13.15 / 13.31 ±0.20 / 13.71 ms │     no change │
│ QQuery 62 │        45.69 / 46.29 ±0.36 / 46.67 ms │        45.80 / 47.40 ±1.93 / 50.81 ms │     no change │
│ QQuery 63 │        29.72 / 29.95 ±0.13 / 30.10 ms │        29.50 / 31.12 ±2.29 / 35.64 ms │     no change │
│ QQuery 64 │     396.43 / 402.31 ±6.00 / 411.64 ms │     397.76 / 409.51 ±9.59 / 424.08 ms │     no change │
│ QQuery 65 │     149.00 / 152.27 ±3.51 / 158.64 ms │     150.14 / 154.27 ±2.82 / 159.01 ms │     no change │
│ QQuery 66 │        80.15 / 83.54 ±4.10 / 89.98 ms │        79.68 / 85.22 ±5.70 / 92.17 ms │     no change │
│ QQuery 67 │     244.51 / 256.11 ±7.78 / 264.09 ms │     247.91 / 252.21 ±2.72 / 256.33 ms │     no change │
│ QQuery 68 │        11.94 / 12.13 ±0.18 / 12.46 ms │        11.98 / 12.12 ±0.18 / 12.46 ms │     no change │
│ QQuery 69 │        62.83 / 63.21 ±0.37 / 63.68 ms │        63.18 / 63.53 ±0.34 / 64.06 ms │     no change │
│ QQuery 70 │    105.16 / 116.57 ±12.01 / 134.34 ms │    105.32 / 114.05 ±11.89 / 137.53 ms │     no change │
│ QQuery 71 │        34.86 / 35.75 ±0.66 / 36.81 ms │        35.84 / 36.37 ±0.49 / 37.26 ms │     no change │
│ QQuery 72 │ 2136.53 / 2195.29 ±47.20 / 2251.34 ms │ 2079.80 / 2176.99 ±96.67 / 2325.85 ms │     no change │
│ QQuery 73 │          9.25 / 9.67 ±0.32 / 10.19 ms │          9.29 / 9.62 ±0.29 / 10.15 ms │     no change │
│ QQuery 74 │     170.31 / 174.50 ±3.57 / 180.12 ms │     174.64 / 178.49 ±4.41 / 185.53 ms │     no change │
│ QQuery 75 │     146.90 / 152.01 ±4.93 / 158.70 ms │     149.38 / 153.92 ±6.67 / 166.97 ms │     no change │
│ QQuery 76 │        35.59 / 36.22 ±0.55 / 37.12 ms │        35.82 / 36.46 ±0.48 / 37.25 ms │     no change │
│ QQuery 77 │        61.03 / 61.68 ±0.41 / 62.23 ms │        62.15 / 62.66 ±0.58 / 63.65 ms │     no change │
│ QQuery 78 │     187.07 / 193.16 ±3.41 / 196.73 ms │    190.01 / 199.79 ±10.58 / 220.34 ms │     no change │
│ QQuery 79 │        67.11 / 67.35 ±0.19 / 67.65 ms │        68.38 / 70.28 ±2.89 / 76.02 ms │     no change │
│ QQuery 80 │     101.04 / 103.87 ±4.78 / 113.41 ms │     102.18 / 104.38 ±1.77 / 107.23 ms │     no change │
│ QQuery 81 │        25.45 / 25.67 ±0.22 / 26.06 ms │        25.81 / 26.37 ±0.35 / 26.86 ms │     no change │
│ QQuery 82 │        16.37 / 16.65 ±0.15 / 16.81 ms │        16.76 / 17.08 ±0.35 / 17.74 ms │     no change │
│ QQuery 83 │        40.03 / 40.29 ±0.20 / 40.62 ms │        40.38 / 43.39 ±5.31 / 53.99 ms │  1.08x slower │
│ QQuery 84 │        34.33 / 37.09 ±3.95 / 44.91 ms │        35.91 / 38.45 ±3.95 / 46.31 ms │     no change │
│ QQuery 85 │     108.92 / 113.19 ±6.05 / 124.89 ms │     109.98 / 111.17 ±0.93 / 112.31 ms │     no change │
│ QQuery 86 │        24.96 / 25.38 ±0.27 / 25.71 ms │        25.98 / 26.12 ±0.15 / 26.40 ms │     no change │
│ QQuery 87 │        63.91 / 64.68 ±0.47 / 65.25 ms │        66.06 / 67.94 ±1.33 / 70.10 ms │  1.05x slower │
│ QQuery 88 │        62.20 / 63.09 ±1.44 / 65.96 ms │        63.14 / 63.87 ±0.74 / 65.25 ms │     no change │
│ QQuery 89 │        35.32 / 36.06 ±0.53 / 36.84 ms │        36.57 / 37.03 ±0.29 / 37.33 ms │     no change │
│ QQuery 90 │        16.75 / 16.93 ±0.17 / 17.26 ms │        17.08 / 17.26 ±0.19 / 17.60 ms │     no change │
│ QQuery 91 │        44.83 / 44.99 ±0.09 / 45.07 ms │        45.71 / 46.26 ±0.45 / 46.81 ms │     no change │
│ QQuery 92 │        29.05 / 30.04 ±0.61 / 30.70 ms │        31.00 / 31.96 ±0.65 / 32.82 ms │  1.06x slower │
│ QQuery 93 │        52.03 / 53.31 ±1.89 / 57.03 ms │        51.33 / 52.77 ±1.12 / 54.30 ms │     no change │
│ QQuery 94 │        38.40 / 38.91 ±0.33 / 39.34 ms │        39.92 / 40.27 ±0.32 / 40.77 ms │     no change │
│ QQuery 95 │        83.98 / 85.15 ±0.88 / 86.59 ms │        86.42 / 89.06 ±3.36 / 95.24 ms │     no change │
│ QQuery 96 │        23.92 / 25.39 ±2.25 / 29.86 ms │        24.38 / 24.54 ±0.17 / 24.77 ms │     no change │
│ QQuery 97 │        46.25 / 47.00 ±0.72 / 48.37 ms │        47.08 / 47.92 ±0.71 / 49.17 ms │     no change │
│ QQuery 98 │        42.06 / 43.14 ±0.81 / 44.46 ms │        43.27 / 44.13 ±0.72 / 45.16 ms │     no change │
│ QQuery 99 │        69.46 / 69.71 ±0.24 / 70.09 ms │        70.47 / 72.68 ±3.41 / 79.42 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                             ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                             │ 10398.10ms │
│ Total Time (qizhu_df-group-column-refactor)   │ 10447.51ms │
│ Average Time (HEAD)                           │   105.03ms │
│ Average Time (qizhu_df-group-column-refactor) │   105.53ms │
│ Queries Faster                                │          1 │
│ Queries Slower                                │          3 │
│ Queries with No Change                        │         95 │
│ Queries with Failure                          │          0 │
└───────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 55.0s
Peak memory 6.7 GiB
Avg memory 6.1 GiB
CPU user 239.5s
CPU sys 6.8s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 55.0s
Peak memory 6.9 GiB
Avg memory 6.2 GiB
CPU user 236.0s
CPU sys 6.6s
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)

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 qizhu_df-group-column-refactor
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃        qizhu_df-group-column-refactor ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.14 / 3.31 ±4.24 / 11.78 ms │          1.17 / 3.25 ±4.13 / 11.52 ms │     no change │
│ QQuery 1  │        12.66 / 12.85 ±0.28 / 13.40 ms │        12.17 / 12.37 ±0.12 / 12.54 ms │     no change │
│ QQuery 2  │        35.14 / 35.89 ±0.78 / 37.37 ms │        35.69 / 36.29 ±0.74 / 37.74 ms │     no change │
│ QQuery 3  │        30.31 / 31.47 ±1.26 / 33.77 ms │        30.08 / 30.57 ±0.37 / 31.15 ms │     no change │
│ QQuery 4  │     221.26 / 226.74 ±4.71 / 233.61 ms │     222.43 / 225.28 ±2.31 / 227.87 ms │     no change │
│ QQuery 5  │     267.34 / 272.86 ±4.71 / 279.99 ms │     268.47 / 273.39 ±3.82 / 278.78 ms │     no change │
│ QQuery 6  │           1.21 / 1.35 ±0.23 / 1.81 ms │           1.18 / 1.32 ±0.22 / 1.76 ms │     no change │
│ QQuery 7  │        13.79 / 13.85 ±0.06 / 13.93 ms │        13.37 / 13.44 ±0.06 / 13.55 ms │     no change │
│ QQuery 8  │     320.93 / 322.91 ±1.74 / 325.33 ms │     316.33 / 324.29 ±6.70 / 336.41 ms │     no change │
│ QQuery 9  │     445.86 / 460.44 ±8.41 / 469.65 ms │    450.94 / 463.66 ±10.03 / 478.49 ms │     no change │
│ QQuery 10 │        68.71 / 69.46 ±0.94 / 71.16 ms │        69.23 / 72.28 ±3.45 / 78.24 ms │     no change │
│ QQuery 11 │        78.83 / 80.46 ±1.04 / 81.54 ms │       80.49 / 87.84 ±8.21 / 101.12 ms │  1.09x slower │
│ QQuery 12 │     264.20 / 268.76 ±4.25 / 274.13 ms │     268.15 / 274.57 ±5.46 / 282.79 ms │     no change │
│ QQuery 13 │     363.39 / 378.00 ±8.93 / 391.16 ms │    367.20 / 380.26 ±10.88 / 394.47 ms │     no change │
│ QQuery 14 │     278.35 / 282.42 ±3.58 / 288.74 ms │     282.10 / 289.15 ±7.60 / 299.53 ms │     no change │
│ QQuery 15 │     274.79 / 277.22 ±4.17 / 285.52 ms │    268.94 / 278.85 ±10.95 / 295.06 ms │     no change │
│ QQuery 16 │    605.86 / 623.67 ±20.12 / 662.44 ms │     606.99 / 621.12 ±7.56 / 628.20 ms │     no change │
│ QQuery 17 │     611.01 / 618.22 ±6.66 / 630.81 ms │     622.21 / 636.24 ±8.87 / 648.30 ms │     no change │
│ QQuery 18 │ 1245.64 / 1268.79 ±16.80 / 1288.06 ms │ 1275.52 / 1288.61 ±16.04 / 1317.59 ms │     no change │
│ QQuery 19 │        27.24 / 27.45 ±0.16 / 27.69 ms │       27.32 / 43.39 ±19.67 / 70.72 ms │  1.58x slower │
│ QQuery 20 │     515.65 / 524.98 ±8.83 / 539.15 ms │     524.06 / 527.35 ±3.49 / 534.12 ms │     no change │
│ QQuery 21 │     590.62 / 595.16 ±2.62 / 598.60 ms │     606.13 / 609.61 ±3.84 / 614.41 ms │     no change │
│ QQuery 22 │  1063.46 / 1070.94 ±7.18 / 1080.63 ms │ 1070.60 / 1085.00 ±14.18 / 1111.35 ms │     no change │
│ QQuery 23 │ 3168.43 / 3222.70 ±36.02 / 3274.13 ms │ 3170.64 / 3217.31 ±28.85 / 3248.13 ms │     no change │
│ QQuery 24 │        41.68 / 42.98 ±1.43 / 45.05 ms │        41.55 / 44.18 ±4.84 / 53.86 ms │     no change │
│ QQuery 25 │     110.27 / 111.43 ±0.82 / 112.51 ms │     110.87 / 113.32 ±1.61 / 115.74 ms │     no change │
│ QQuery 26 │        41.84 / 43.93 ±2.54 / 48.66 ms │        42.05 / 43.70 ±1.56 / 46.10 ms │     no change │
│ QQuery 27 │     669.76 / 679.04 ±6.80 / 688.88 ms │     674.14 / 681.96 ±6.23 / 691.52 ms │     no change │
│ QQuery 28 │ 3048.38 / 3067.60 ±11.83 / 3081.63 ms │  3024.76 / 3041.34 ±9.20 / 3051.14 ms │     no change │
│ QQuery 29 │        40.18 / 49.81 ±8.23 / 59.46 ms │       40.25 / 55.56 ±16.93 / 86.73 ms │  1.12x slower │
│ QQuery 30 │    299.41 / 308.56 ±10.87 / 328.90 ms │     299.44 / 305.72 ±5.49 / 312.10 ms │     no change │
│ QQuery 31 │     288.66 / 296.06 ±6.71 / 307.96 ms │     286.00 / 295.69 ±8.42 / 306.19 ms │     no change │
│ QQuery 32 │    937.97 / 956.61 ±12.26 / 972.58 ms │   935.24 / 987.98 ±40.07 / 1049.10 ms │     no change │
│ QQuery 33 │  1460.00 / 1473.16 ±8.35 / 1482.40 ms │ 1423.28 / 1476.22 ±51.47 / 1563.29 ms │     no change │
│ QQuery 34 │ 1463.49 / 1514.81 ±43.33 / 1592.68 ms │ 1447.10 / 1473.14 ±15.62 / 1494.03 ms │     no change │
│ QQuery 35 │    273.60 / 299.14 ±36.43 / 371.09 ms │    276.86 / 300.02 ±27.43 / 347.26 ms │     no change │
│ QQuery 36 │        71.02 / 74.20 ±2.66 / 77.35 ms │        64.69 / 72.60 ±6.59 / 82.44 ms │     no change │
│ QQuery 37 │        34.67 / 35.40 ±0.55 / 35.96 ms │        34.75 / 35.19 ±0.23 / 35.39 ms │     no change │
│ QQuery 38 │        41.51 / 47.32 ±5.33 / 57.37 ms │        40.43 / 42.72 ±1.43 / 44.68 ms │ +1.11x faster │
│ QQuery 39 │    133.09 / 147.98 ±10.16 / 164.76 ms │    137.36 / 150.95 ±10.15 / 160.61 ms │     no change │
│ QQuery 40 │        13.44 / 14.78 ±2.06 / 18.89 ms │        13.40 / 16.10 ±4.89 / 25.87 ms │  1.09x slower │
│ QQuery 41 │        13.21 / 14.14 ±1.62 / 17.38 ms │        13.36 / 13.53 ±0.11 / 13.67 ms │     no change │
│ QQuery 42 │        12.53 / 18.10 ±8.44 / 34.69 ms │        12.56 / 12.86 ±0.20 / 13.06 ms │ +1.41x faster │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                             ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                             │ 19884.95ms │
│ Total Time (qizhu_df-group-column-refactor)   │ 19958.19ms │
│ Average Time (HEAD)                           │   462.44ms │
│ Average Time (qizhu_df-group-column-refactor) │   464.14ms │
│ Queries Faster                                │          2 │
│ Queries Slower                                │          4 │
│ Queries with No Change                        │         37 │
│ Queries with Failure                          │          0 │
└───────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 100.0s
Peak memory 29.2 GiB
Avg memory 23.1 GiB
CPU user 1020.6s
CPU sys 74.5s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 105.0s
Peak memory 30.1 GiB
Avg memory 22.8 GiB
CPU user 1021.6s
CPU sys 76.9s
Peak spill 0 B

File an issue against this benchmark runner

@adriangb
Copy link
Copy Markdown
Contributor

adriangb commented Jun 8, 2026

Sorry I didn't get to review this, I've been on vacation the last couple days. Thanks @alamb and @zhuqi-lucas for getting this across the line!

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

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants