Repository navigation
Conversation
(cherry picked from commit a11250d)
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: e6e6cdb1d60d1963f4630f71ea7eee8fbd765172
Assessment: approve
The backport preserves aggregate, peer, partition and cleanup contracts while removing quadratic work from supported unbounded frames. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Seven focused tests passed normally and with race detection; each also passed 100 race repetitions. All 82 owning-package tests passed in both modes.
-
All 20 SQL fixture statements and expected results passed through each of two CNs, including prepared reexecution and database cleanup.
-
Package build and vet passed. Matched baseline/candidate benchmarks confirmed substantial improvements, with the bounded-frame control remaining comparable.
-
Reconciled 21 terminal receipts and retained logs in attempt-1/validation-audit.json. The initial SQL harness extraction error was corrected and its failed run excluded. All three discussion entries were assessed.
Limitations:
-
Validation ran on Linux; the author's macOS claims were not independently reproduced.
-
SQL used a retained Go/MySQL harness rather than mo-tester. Benchmark samples establish local improvements, not production latency guarantees.
f6a2794
into
matrixorigin:release/v4.2.1-hotfix-20261026
What type of PR is this?
Which issue(s) this PR fixes:
Addresses #31530 on
release/v4.2.1-hotfix-20261026.What this PR does / why we need it:
Backport #31546 to the active 4.2.1 hotfix branch. Aggregate windows currently rescan unbounded frames for every output row, causing quadratic aggregate work, including with a
LIMITabove the Window operator.Compute a whole-partition aggregate once and broadcast its result. Reuse independent unfinalized states for supported cumulative COUNT/SUM/AVG and fixed-width MIN/MAX frames; RANGE includes the complete peer group. Preserve the existing evaluator for unsupported cumulative aggregates and frames, and keep the target branch's unrelated vector and lifecycle code unchanged.
Validation on the target branch, macOS arm64 and Go 1.26.4:
-race; tests cover aggregate values, NULLs, peers, partition isolation, varlen/DISTINCT full frames, work counts, cancellation and allocation failures.go vet,molintand configuredgolangci-lintpassed; lint reported zero issues. Molint printed six diagnostics in unchanged frontend/compile files; the same six were reproduced against the target baseline.Unsupported cumulative DISTINCT, variable-length MIN/MAX and other unsupported states, and frames ending at a non-current offset retain the generic evaluator. CI remains separate.