Skip to content

Untie Sliding Blocks and Output Chunks in WindowTransform - #128687

Merged
Michicosun merged 5 commits into
masterfrom
window_functions_output_stream
Nov 3, 2026
Merged

Michicosun merged 5 commits into
masterfrom
window_functions_output_stream

Conversation

@Michicosun

@Michicosun Michicosun commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

This patch simplifies interfaces so that output blocks will be represented as an output chunk stream and will not be tied to sliding blocks, which can then be made fully const.


Workflow [PR]
Sync PR [sync-upstream/pr/128687]

Version info

  • Merged into: 26.11.1.1249-master (included in 26.11 and later)

@yariks5s yariks5s self-assigned this Nov 2, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [1e62cfe]

Summary: ✅


AI Review

Summary

This PR decouples completed output chunks from sliding input blocks in WindowTransform and collects optional bounds according to window function requirements. Reviewed head 1e62cfe3a7b0627d3f08851d5abace0bdf500e74, including the prior discussion and subsequent changes. The earlier finding about collecting unused frame, peer, and partition bounds for aggregate-only windows is addressed. No actionable findings remain. The head's Fast test reports 154 passing window-related tests and 18 skipped tests, including passing offset, partition-state, and aggregate-window coverage.

Final Verdict

Status: ✅ Approve.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Nov 2, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-window-functions Window function execution + frame handling (ROW_NUMBER/RANK/LAG/LEAD, frames, partitions, order). label Nov 2, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 1e62cfe3a with master 4944813cc (stripped binary size, per-symbol sizes and ThinLTO time; object sizes against the warmup build of e8ca7d358; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

9 translation units recompiled, 14 s compile time in total, 9 of them have a recent master baseline.

Job report

@Michicosun
Michicosun added this pull request to the merge queue Nov 3, 2026
Merged via the queue into master with commit 6bffa88 Nov 3, 2026
179 checks passed
@Michicosun
Michicosun deleted the window_functions_output_stream branch November 3, 2026 20:04
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-window-functions Window function execution + frame handling (ROW_NUMBER/RANK/LAG/LEAD, frames, partitions, order). pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants