Repository navigation
Improve SORT ROLLUP reuse for MIN and MAX - #32089
Conversation
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? |
d9591c2 to
45c5a14
Compare
|
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: 45c5a1418a499c47d75e09913a7c78c0f1b1560e
Assessment: approve
The reuse extension preserves aggregate semantics, conservative metadata fallback, and failure cleanup. No actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0
Validation:
-
Go 1.27.1 focused tests passed in aggexec and group: 35 top-level tests using the assigned isolated executor. Receipt: checks/1793701615887156778-2.json; log: targeted-tests-toolchain.log.
-
Whitespace, Go formatting, and independent checks of all 52 added SQL fixture rows and metadata passed. Receipt: checks/1793700978773759901-2.json; log: source-audit-retry.log.
-
Isolation preflight and native input verification passed. validation-index.json reconciles nine terminal receipts with retained logs and post-test source hashes.
-
Complete delta, relevant owners, linked issue context, and discussion assessed; review-plan.md and discussion-assessment.json saved.
Limitations:
-
Race, live SQL BVT, and benchmark results rely on qualified author reports; they were not rerun locally.
-
The pre-rebase commit is unavailable, so unchanged-patch equivalence remains author-reported. Available incoming-main changes exclude affected owners and core build inputs.
-
Reported performance controls remain inconclusive; no broader production or multi-CN performance conclusion is claimed.
✅ Merged into
|
What type of PR is this?
Which issue(s) this PR fixes:
What this PR does / why we need it:
The existing SORT ROLLUP implementation and subsequent correctness and reuse fixes are already merged. A later issue comment measured a slow forced-SORT path at high cardinality when MIN/MAX were included; the earlier DISTINCT and ordering concerns were static risks, not a reproduced wrong SQL result. This change extends single-group reuse to supported fixed-width MIN/MAX and generic decimal SUM/AVG, including BIGINT, while preserving conservative fallback for unsupported aggregate lists and metadata.
Validation:
The main performance target was met, but some controls and ablations remained inconclusive after 30 samples because of variability; this does not establish that every control avoids regression. Measurements do not establish production concurrency, multi-CN, cold-cache, peak RSS, or CPU/GC attribution. CI is pending.
Branch refresh (2026-11-03):
d9591c296fcc9e6e037c86104d8aecb675399950onto officialmainatc337122982537dcf957705cb6fc5f7f9bdc6a0f6; resulting head45c5a1418a499c47d75e09913a7c78c0f1b1560e. This completes the branch update that Mergify check 125839036507 could not perform because its GitHub App lacked workflow write permission.git range-diffconfirms all six patches unchanged;git diff --checkand the Loom PR artifact check pass. The delivery diff contains only the eight original source/test files, including the SQL fixture and expected results. No product code was changed during this refresh.