Repository navigation
Optimize Shuffle ordering proof and identity copy - #32168
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? |
…684fcea4676a59873dac027b38a3e7363263674
|
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: fec2852ee7b4e5a2d765210548819d91c897fe86
Assessment: approve
The shared gather/ordering helper removes a separate proof pass and unnecessary disjoint identity copy-back while preserving ownership, failure rollback, metadata and sorted-consumer behavior. The added branch is justified by the scoped component optimization; no actionable defect remains.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed the complete four-file delta, owners, sorted consumers and linked issue discussion. Frozen exact-head CI passed shared build, UT, SCA, coverage, PROXY and pessimistic multi-CN BVT.
-
Isolated internal helper probe passed 328,828 gather/ordering/identity cases and 83,521 byte-range cases; no skips. Receipt: checks/1793802189699240402-2.json; retained probe-tests.jsonl and probe-inputs.json.
-
Source, patch, gofmt, discussion coverage and execution-evidence audit passed. Receipt: checks/1793802300375977724-2.json; audit-report.json. Source remained unchanged.
Limitations:
-
The local probe uses extracted function bodies with a reduced type constraint; it is not a linked repository-package test. Package/public-path validation is reused from frozen CI; no fresh race run is claimed.
-
The reported 30.52% component gain and small descending-control signal were not independently benchmarked here and establish no end-to-end SQL performance claim. General non-identity scratch/data overlap remains unsupported as disclosed.
🚫 Left the queue · pull request dequeued2 h 27 min in the queue, with no time running CI. So far
Reason Pull request #32168 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
To get back in the queue
Merge conditions not met when it left the queue
Tick the box to put this pull request back in the merge queue (same as
2 merge conditions met
Times in UTC · dashboard · how the merge queue works |
…684fcea4676a59873dac027b38a3e7363263674
What type of PR is this?
Which issue(s) this PR fixes:
What this PR does / why we need it:
Follow-up to merged #32020: preserve its Shuffle ownership, failure-atomicity and sorted-metadata fixes while reducing ordering-proof and identity-copy overhead. The issue's QA found an ascending buffered Shuffle component benchmark regression after the original fix; the original lease leak and sorted correctness failures were no longer reproduced in its covered main paths. This change combines the ordering proof with gathering and avoids the identity copy-back only when the actual data and scratch ranges do not overlap.
Validation at the final candidate: vector and function owning suites and targeted mergeutil tests passed; identity alias and byte-overlap boundary tests, gofmt, affected-package vet, incremental lint and
git diff --checkpassed. Prior race evidence applies to the unchanged owner protocol. Full CI is pending.In a shared-machine component benchmark, the 8192-row fixed buffered ascending fixture improved 30.52% against a restricted pre-fix function overlay (10 paired samples, 90% CI −31.23% to −29.81%; both 0 allocations). This is not an end-to-end or production SQL measurement. The 64-row descending control showed a +0.72% signal against the preceding candidate (5 pairs, 90% CI +0.05% to +1.40%); its cause and production impact are unestablished, and the review accepted it as a non-blocking limitation, not proof of equivalence.
General non-identity overlap between scratch and data remains unsupported as a correct in-place gather: this change can alter the erroneous output of an already incorrect overlapping call. Identity overlap retains the two-copy behavior; callers should use independent scratch for general selections.