Repository navigation
fix compatibility for concat, prepared elt, and string numeric results - #28915
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? |
6ae9c8b to
6e7da94
Compare
|
Fixed and rebased onto current Changes:
Validation:
The three known frontend/issues execution paths were not rerun locally because this worktree lacks the matching |
6e7da94 to
5e12429
Compare
|
CI triage and repair update (2026-09-15): this was PR-owned, not a base/runner failure. The failed Ubuntu UT and UT Coverage jobs reproduced four deterministic planner regressions: prepared Boolean arithmetic hit |
a1b7235 to
fd3561c
Compare
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review 结果(当前 head fd3561c):
在已检查代码中未发现 confirmed actionable defect。numeric result changes 保持 overload IDs 和 legacy wrappers;新 result types 在 placement、sender、receiver、persisted-expression admission 处使用 MORPC v80 fence。prepared ELT rebinding 保留全部参数和 execution-bound values,已有测试覆盖 decimal rounding、numeric prefixes、NULL、invalid index 和 cached-plan immutability。
Exact-head CI 报告 Linux UT、coverage、multi-CN BVT 通过,但 upgrade jobs skipped;本轮未运行额外 local tests,完整 prerequisite/lifecycle review 未完成。因此本次只记录为无已确认 defect 的部分审查,不作为 approve 或完整 clean deep-review 结论。
matrixorigin#28915) ## What type of PR is this? - [ ] API-change - [x] BUG - [x] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#28904 issue matrixorigin#28908 issue matrixorigin#28909 ## What this PR does / why we need it: This is the string-compatibility successor to matrixorigin#28885 and is delivered with matrixorigin#28940 as a real protocol-admission prerequisite. The branch keeps the aggregate protocol allocation from matrixorigin#28885 (v75-v78), the durable persisted-expression read/authoring/generation fence from matrixorigin#28940, and adds the disjoint v79 string-numeric result contract. The prerequisite commits are kept as separate ancestry so the PR is safe before either predecessor is merged; after they land, the review diff collapses to the v79 adaptation. - Accept one-argument `CONCAT` while retaining zero-argument rejection and correct NULL/value behavior. - Preserve the execution-bound occurrence when rebinding prepared `ELT` indexes. Runtime decimal rounding, numeric prefixes, NULL, out-of-range values, and explicit `DOUBLE` casts keep their intended results without mutating the cached plan. - Correct result metadata and execution domains for `FIND_IN_SET`, `STRCMP`, `CHAR_LENGTH`/`LENGTH_UTF8`, `UNCOMPRESSED_LENGTH`, and `CRC32`, while retaining legacy wrappers for older protocol consumers. - Gate sender placement, receiver validation, persisted expression admission, VIEW authoring/read/regeneration/restore, and generation/pending transitions at MORPC v79 so an older CN cannot decode or rebind the new result domain. ## Test plan - Combined affected-package normal tests: `pkg/sql/plan`, `pkg/sql/plan/function`, `pkg/sql/compile`, `pkg/frontend`, `pkg/hakeeper`, `pkg/cnservice`, and `pkg/logservice`. - Focused protocol/admission `-race -count=1` tests, including HAKeeper member capability/pending reconciliation, VIEW restore, sender/receiver placement, prepared `ELT`, wrappers, and one-argument `CONCAT`. - `go list -mod=readonly`, CGo-aware `go vet`, `git diff --check`, and `make build-with-prebuilt-native` all pass on the combined candidate. - On 10.222.1.55 using the combined candidate binary, `func_bounded_result_metadata` passed `63/63` statements, `0` failures in 0.462s. It covers direct/prepared `CONCAT`, prepared `ELT` decimal/prefix/NULL/out-of-range/`DOUBLE`, VIEW/CTAS metadata, and the corrected legacy metadata cells. - No new row-execution hot-path cache or unbounded state is introduced; version detection runs at plan/DDL/metadata boundaries. Official repository CI remains authoritative and is intentionally not awaited here.
matrixorigin#28915) ## What type of PR is this? - [ ] API-change - [x] BUG - [x] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#28904 issue matrixorigin#28908 issue matrixorigin#28909 ## What this PR does / why we need it: This is the string-compatibility successor to matrixorigin#28885 and is delivered with matrixorigin#28940 as a real protocol-admission prerequisite. The branch keeps the aggregate protocol allocation from matrixorigin#28885 (v75-v78), the durable persisted-expression read/authoring/generation fence from matrixorigin#28940, and adds the disjoint v79 string-numeric result contract. The prerequisite commits are kept as separate ancestry so the PR is safe before either predecessor is merged; after they land, the review diff collapses to the v79 adaptation. - Accept one-argument `CONCAT` while retaining zero-argument rejection and correct NULL/value behavior. - Preserve the execution-bound occurrence when rebinding prepared `ELT` indexes. Runtime decimal rounding, numeric prefixes, NULL, out-of-range values, and explicit `DOUBLE` casts keep their intended results without mutating the cached plan. - Correct result metadata and execution domains for `FIND_IN_SET`, `STRCMP`, `CHAR_LENGTH`/`LENGTH_UTF8`, `UNCOMPRESSED_LENGTH`, and `CRC32`, while retaining legacy wrappers for older protocol consumers. - Gate sender placement, receiver validation, persisted expression admission, VIEW authoring/read/regeneration/restore, and generation/pending transitions at MORPC v79 so an older CN cannot decode or rebind the new result domain. ## Test plan - Combined affected-package normal tests: `pkg/sql/plan`, `pkg/sql/plan/function`, `pkg/sql/compile`, `pkg/frontend`, `pkg/hakeeper`, `pkg/cnservice`, and `pkg/logservice`. - Focused protocol/admission `-race -count=1` tests, including HAKeeper member capability/pending reconciliation, VIEW restore, sender/receiver placement, prepared `ELT`, wrappers, and one-argument `CONCAT`. - `go list -mod=readonly`, CGo-aware `go vet`, `git diff --check`, and `make build-with-prebuilt-native` all pass on the combined candidate. - On 10.222.1.55 using the combined candidate binary, `func_bounded_result_metadata` passed `63/63` statements, `0` failures in 0.462s. It covers direct/prepared `CONCAT`, prepared `ELT` decimal/prefix/NULL/out-of-range/`DOUBLE`, VIEW/CTAS metadata, and the corrected legacy metadata cells. - No new row-execution hot-path cache or unbounded state is introduced; version detection runs at plan/DDL/metadata boundaries. Official repository CI remains authoritative and is intentionally not awaited here.
What type of PR is this?
Which issue(s) this PR fixes:
issue #28904
issue #28908
issue #28909
What this PR does / why we need it:
This is the string-compatibility successor to #28885 and is delivered with #28940 as a real protocol-admission prerequisite. The branch keeps the aggregate protocol allocation from #28885 (v75-v78), the durable persisted-expression read/authoring/generation fence from #28940, and adds the disjoint v79 string-numeric result contract. The prerequisite commits are kept as separate ancestry so the PR is safe before either predecessor is merged; after they land, the review diff collapses to the v79 adaptation.
CONCATwhile retaining zero-argument rejection and correct NULL/value behavior.ELTindexes. Runtime decimal rounding, numeric prefixes, NULL, out-of-range values, and explicitDOUBLEcasts keep their intended results without mutating the cached plan.FIND_IN_SET,STRCMP,CHAR_LENGTH/LENGTH_UTF8,UNCOMPRESSED_LENGTH, andCRC32, while retaining legacy wrappers for older protocol consumers.Test plan
pkg/sql/plan,pkg/sql/plan/function,pkg/sql/compile,pkg/frontend,pkg/hakeeper,pkg/cnservice, andpkg/logservice.-race -count=1tests, including HAKeeper member capability/pending reconciliation, VIEW restore, sender/receiver placement, preparedELT, wrappers, and one-argumentCONCAT.go list -mod=readonly, CGo-awarego vet,git diff --check, andmake build-with-prebuilt-nativeall pass on the combined candidate.func_bounded_result_metadatapassed63/63statements,0failures in 0.462s. It covers direct/preparedCONCAT, preparedELTdecimal/prefix/NULL/out-of-range/DOUBLE, VIEW/CTAS metadata, and the corrected legacy metadata cells.