Repository navigation
Conversation
Import the final feature tree from PR matrixorigin#31944 at db225c8 onto main aeab878. The source PR and its branch remain unchanged. This establishes the feature baseline for the complete owner refactor in a new PR.
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? |
|
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: d033d8faed2cb5647c3ee6ea3bda3e7179362bd6
Assessment: approve
The refactor consolidates existing owners while preserving residual evaluation, authorization and bounded lifetimes. The complete scope is closed; prior API-migration and performance-validation findings are resolved. No actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed 454 changed paths: 441 source-qualified paths and 13 directly reviewed continuation paths. Assessed all 21 discussion items and linked requirements.
-
Local preflight and corrected AST/API audit passed: 7,651 Go files, 800 BuildPlan calls and 68 resolver methods. Descriptor checks preserve 1,640 fields, 315 enum values and 634 existing function IDs.
-
Source, patch and discussion checks passed. The sole gofmt difference is unchanged from baseline. Receipts and retained logs are reconciled in the diagnostic artifacts.
-
Reused qualified normal/race, public SQL, two-CN Proxy BVT, stopped-4.2.8 upgrade and paired-performance reports from supplied evidence.
Limitations:
-
The focused frontend test timed out downloading Go 1.27.1; zero local product tests compiled or executed.
-
Raw runtime/performance artifacts were unavailable. Broad reports predate the rebase; only matching semantic scope was reused.
-
The frozen CI snapshot has five checks in progress and upgrade jobs skipped. Historical tail-latency signals, unmeasured native allocations and independent issue #31611 remain disclosed limits.
|
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: b047c680dd3b2f3a34d3703837c4693d03440ad6
Assessment: approve
The refactor coherently reuses existing comparison, resolver, costing, cache and execution owners. Its separate markers protect distinct contracts. Reviewed 13 merge continuations and qualified 443 unchanged paths; no actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0
Validation:
-
Reconciled all 25 check receipts with the frozen head, clean source and retained logs in validation-receipts.json; two superseded reviewer-probe diagnostics are documented.
-
Full planner, compiler, value_scan and readutil normal suites passed; two planner subtests were skipped.
-
16 focused frontend roots and two public SQL roots passed, covering prepared retries, INDEX/BASE selection, clock/time-zone changes and privilege revocation.
-
Seven targeted race roots passed once and adaptive repetitions: 31 for cache lifetime, 100 each for the remaining six.
-
Vet passed for five affected consumer packages. AST audit checked 801 BuildPlan calls and 69 resolver implementations.
-
Confirmed stability of 1,640 existing protobuf fields, 315 enum values and 634 function IDs. Source, format, native provenance and all 23 discussion items are accounted for.
Limitations:
-
Core CI jobs were pending in the frozen snapshot. Local frontend and race coverage was focused.
-
Broader multi-CN/Proxy-BVT, real 4.2.8 stopped-upgrade and performance coverage relies on supplied, source-qualified reports without older raw receipts. Reported tail-latency signals and unmeasured native allocations limit performance conclusions.
What type of PR is this?
Which issue(s) this PR fixes
Closes #32318. This is the standalone successor to #31944; the original mixed temporal wrong-result fix is #31624.
What this PR does / why we need it
Mixed
DATETIME/TIMESTAMPcomparisons need type-aware necessary ranges and the complete SQL residual. This integrates their planning, costing, authorized resolution, filtering and execution into the existing index owners:CandidateFilteris independent of the residual and does not authorize hidden-table access. A physical scan separately records a captured-execution requirement, which frontend, compile and retry validate against execution and placement.CompilerContextmust migrate to the explicit parameter.ffmaximum as potentially unbounded, including old unmarked summaries. Metadata aggregation clones cached zone maps before merging, avoiding concurrent cache mutation.The design records the separate ownership and reuse contracts. Named-zone inversion, prepared temporal inversion, joins, LIMIT/OFFSET, non-covering backfill and distributed candidate scans retain conservative fallbacks.
The prior Compose/Proxy CI failed while COPY ALTER was acquiring source/index admission, with a write conflict. A Fulltext2 ISCP task was active nearby, but the logs do not identify the actual conflicting holder. The two affected Fulltext2 fixtures now insert their initial rows before CREATE INDEX, whose existing synchronous build indexes the populated table and starts CDC from the current point. Their ALTER and result assertions remain. A new deterministic SQL integration test freezes the rebuilt generation after a post-rebuild CDC update, verifies the same-schema gap and result, then forces a schema change and verifies that the indexed query survives a rejected cross-schema
table_changes. The generic ALTER/async-index conflict tracked by #31611 is not fixed by the fixture change; production conflict and rollback guards remain intact.Validation
Rebased onto
maind7185c9a92at headd033d8faed. Focused frontend subscription, planner ENUM/snapshot, pagination and set-membership, and value-scan tests passed. The embedded SQL test for a cached historical subscription with a replaced alias and revoked/regranted publication passed. The issues and isolated-issues packages were compiled without executing their tests; a repository AST scan checked 800BuildPlancalls.The validation below was recorded on pre-rebase revisions and was not all rerun after the rebase. CI and final-head review must be evaluated on the updated head.
Planner and value_scan complete normal and race runs: 4,846 and 20 top-level tests respectively; two existing planner subtests skipped. Five public SQL roots (temporal EXPLAIN/index parity, hidden-index access, prepared numeric/temporal behavior, legacy privilege cleanup and the upstream [Bug]: INSERT VALUES with a scalar subquery and a bare NULL in one column panics: unexpect type ANY for function vector.GetUnionFunction #31882/[Bug]: UNION of a DATE and a TIME column is typed DATE and drops the time (MySQL: DATETIME) #31913 VALUES/UNION regression) passed normal and race. The new Fulltext gap/fallback integration test passed three normal and three race runs, including test-owned database and ISCP cleanup.
Repository AST inventory: 7,623 tracked Go files, 798
BuildPlancalls and 68 resolver implementations checked for explicit output signatures and clearing; all passed. Incremental gofmt, full-PR diff check, vet, pinned molint and unfiltered configured golangci passed for the seven affected planner/consumer packages, with a further check of the final test-only delta. Earlier full-repository static and other owner normal/race runs remain source-qualified to the earlier production revisions.Two-CN pessimistic embedded cluster with a real Proxy and strict result/metadata comparison:
fulltext2_json_probe_alter16/16 andfulltext2_include_rename39/39, each three times; databases and server were cleaned up. The first strict run also exposed stale boolean-result metadata in the old expected files, which this PR corrects. The local cluster is not the Docker Compose CI topology.A stopped upgrade from the real 4.2.8 release to the production-identical candidate passed: temporal INDEX/BASE results matched, an old non-admin saved result remained readable, revocation denied it and regrant restored it, and persisted binary data returned the expected block-filtered row. Both services stopped cleanly and the isolated containers and volume were removed. The upgrade binary is built from
929cd5c825; the subsequent candidate delta only changes test cleanup order.Same-main two-CN performance against the pre-refactor feature: two old/old controls and six interleaved processes per side, 100 timed samples per phase after warmup. Shuffled sparse INDEX p50 was 0.52889→0.52382 ms and ordinary shuffled integer 0.25476→0.25277 ms. The prepared binary phase showed +8.75% process CPU and +4.02% Go bytes in this short run. A history-preserving follow-up with the previous seven phases and 1,000 prepared samples measured p50 -0.15%, p95 +5.18% versus old/old +10.51%, CPU +0.036% and Go bytes +0.071%. These runs do not explain the earlier mixed-workload +13% p95 signals; the prepared physical plan and native allocations were not observed, and process-wide CPU/Go bytes include background work.
SQL syntax and durable table/index formats do not change. The supported upgrade tested here is a stopped 4.2 upgrade; mixed-version execution and downgrade are not claimed. The existing mo-bot approval covers published head
c04627aa32; final-head review and GitHub CI remain separate.