Repository navigation
fix: publish partitioned CREATE INDEX metadata through ALTER - #32772
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? |
|
Queue requested — the merge queue status continues in this comment ↓. |
cf0425d to
22a1855
Compare
|
mo-bot review · Commit: Review completed. Read the assessment. |
iamlinjunhong
left a comment
There was a problem hiding this comment.
Reviewed exact head 22a18559867e1bdb0a01b78c27ea950cd44d24a4 against main base e1a0b7d249c5abe4e46a1a6a3c033af27d32ce8f for #32211. No confirmed in-scope findings.
Checked the partitioned CREATE INDEX delegation, parent/child execution in the shared transaction, identifier and option serialization, duplicate-name admission, unaffected index-family routes, and the task-definition readiness fence and its cancellation/error paths. This is the first review; there are no previous review findings or author replies to reconcile.
The supplied exact-head CI snapshot contains 29 checks: 13 successful, 14 skipped, and 2 neutral. Therefore, not all checks passed; none are recorded as failed or pending. Successful checks include CI Required, UT, SCA, coverage, and compose BVT. Reused that snapshot; the PR description also reports focused SQL and MoTester validation, whose raw logs were not independently reproduced here. Local git diff --check and the read-only PR artifact check passed. Additional local tests were skipped because source inspection did not establish a specific uncertainty requiring a new service/test run.
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 22a18559867e1bdb0a01b78c27ea950cd44d24a4
Assessment: approve
The bounded CREATE INDEX delegation coherently reuses ALTER’s existing transaction owner while preserving identifiers, options and typed errors. The readiness fence retains terminal failures and existing race assertions. No actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed all nine changed files, closing issue #32211 and all three discussion entries. Source integrity and receipt/log reconciliation passed; see validation-audit.json.
-
Four complete normal suites passed: 7,156 root tests. All 13 changed/affected test roots passed.
-
Five affected task tests passed normally and under race detection. Adaptive stress passed 100 repetitions per readiness helper and one additional two-CN lifecycle run.
-
Frontend checks passed metadata publication, DML maintenance, quoted identifiers, BTREE UNIQUE, typed errors, connection reuse and exact late-child rollback. The merge-base control reproduced missing logical-parent metadata.
-
MoTester passed the exact 17-statement case twice with full metadata comparison, zero failed/ignored/abnormal statements and verified teardown.
-
Pinned analyzers passed all 510 packages under repository configuration. Formatting, diff, ordinary vet, isolation preflight and native provenance checks passed.
Limitations:
-
Two unrelated planner subtests were skipped. The isolated integration package ran the five affected tests. DDL/BVT checks used one CN; task lifecycle checks used two.
-
Author-reported broader executions lacked supplied receipts and were not counted. MoTester used hashed repository-bundled jars; optional Maven packaging failed at assembly.
✅ Merged into
|
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #32211
What this PR does / why we need it:
Standalone CREATE INDEX could succeed on a partitioned table while SHOW INDEX, SHOW CREATE TABLE and FORCE INDEX could not see the logical parent index.
Route ordinary BTREE CREATE INDEX, including the existing UNIQUE form, through the same existing ALTER TABLE ADD INDEX transactional route used by ALTER. This publishes the logical parent and physical partition children together; it does not add a new partition index mechanism. Preserve quoted identifiers, serializable options, typed duplicate-name errors and existing paths for other index families. Add the CI test-readiness fence for the isolated SQL task-ownership test.
Validation:
make static-check-selected STATIC_CHECK_PACKAGES="$(cat /home/mo/.local/share/matrixone-matrix-meow-intake/batches/meow-32211/out/CI-scaoffline27/static-check-510-packages.txt)" GOLANGCI_LINT_CONCURRENCY=4. The frozen package file SHA-256 is8df8832e0781d5524ac910aca409742c16b1f4bb2368388777e89465bcbe0dd8.