Repository navigation
fix: preserve expression result metadata and coercion contracts - #28941
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? |
843cef6 to
af33d50
Compare
|
Rebased onto latest |
629f40f to
f5af39f
Compare
XuPeng-SH
left a comment
There was a problem hiding this comment.
Reviewed exact head f5af39fcc8051e3d831c53aa2cc9b0f3cb8d4eba with GPT-6 medium deep review. COMMENT-only because this is the author PR.
P2: pkg/sql/compile/bounded_conditional_string_protocol_test.go:89-92 still expects "version 81", but the receiver guard in pkg/sql/compile/remoterun.go:2190-2194 correctly returns "bounded conditional string domains require MORPC protocol version 82". This is a deterministic test failure for the new COALESCE overload 31 path. Please update the assertion to v82 and rerun the affected validation.
No additional concrete P1/P2 blocker found across the 19-file diff: the COALESCE overload identities, feature traversal, worker placement/destination checks, persisted-expression admission, CHAR/VARCHAR order-independent metadata, CHAR PAD SPACE equality keys, and metadata BVT refresh are aligned.
CI is not green at this head: Ubuntu UT timed out with exit 124, and Coverage produced no verdict because a required producer profile was incomplete. Build, SCA, and the two multi-CN BVT checks passed; upgrade compatibility checks were skipped. Please fix the assertion and refresh the relevant CI before merge.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Force deep self-review of current head 9f5cdc5.
- The previous protocol-test blocker is closed: the bounded COALESCE overloads are consistently gated at MORPC v83 in feature detection, placement, destination validation, persisted-expression admission, and the receiver check.
- Audited the complete 19-file diff: bounded CHAR/VARCHAR and BINARY/VARBINARY inference, CHAR PAD SPACE equality keys for set operations, conservative LEAST/GREATEST metadata, overload registration/IDs, and remote-worker downgrade/recheck paths are aligned.
- The current required CI contexts are green (UT, SCA, coverage, shared build, CPU/multi-CN BVT); Upgrade/3.0 checks are skipped.
- No evidence-backed P0/P1/P2 finding.
Non-blocking dependency note: this branch intentionally uses MORPC v83 while #28825 owns the separate v82 contract; keep the dependency ordering/rebase requirement from the PR description.
Decision: no blocker; comment-only because this is my own PR.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #28902
Fixes #28901
Fixes #28897
Fixes #28896
Fixes #28894
Fixes #28892
Fixes #28886
What this PR does / why we need it:
both operand orders, including the mixed CHAR/VARCHAR set-operation path.
equality keys separate from result metadata.
still expected the old version text after production moved to the new gate.
MORPC v82 for exact plain DECIMAL256 literals, so fix: support Decimal256 RANGE window bounds #28825 should land first (or
this PR must be rebased after that change); the two features must not share a
protocol version.
Test plan
main=8e90e412647eee460772068efa127daa23d09828.go test -count=1 ./pkg/pb/plan ./pkg/sql/plan ./pkg/sql/compile— PASS.gofmtandgit diff --check— PASS.No slow BVT or heavyweight fixture was added.