Repository navigation
fix: show user tables matching the internal index pattern - #31420
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? |
|
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: 9bc9afca0dec208fa153361f75c4896e5d63b0f0
Assessment: approve
The complete delta restores literal internal-index filtering while preserving user LIKE semantics and existing visibility rules. The shared migration entry appropriately reuses transactional tenant upgrades, including rollback, retry and persisted completion. No actionable defects remain. Both frozen discussion items were informational.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Confirmed clean frozen HEAD and built matching native prerequisites. Provenance, commands, source fingerprints, exit receipts and log hashes are reconciled in attempt-1/validation-audit.json.
-
Affected unit packages passed 4,373 top-level tests; v4_0_18 compiled with no standalone tests. Evidence: unit-tests.log and checks/1793090112914901503-3.json.
-
TestTablePrefixMetadataUpgrade passed twice on the shared SQL cluster, covering boundary names, hidden backing tables, LIKE/WHERE, counts, restricted visibility, historical-view rollback, retry and fresh-upgrader admission. Evidence: sql-integration.log and checks/1793090112236243358-3.json.
-
go vet, formatting and diff checks passed: static-checks.log and checks/1793090220630509386-3.json.
-
Saved discussion-assessment.json and review-notes.json under /home/xupeng/.local/state/mo-bot/jobs/3e0af8f0337eeb3199a84942/attempt-1.
Limitations:
-
Frozen main CI checks were pending; approval relies on the qualified local evidence, not presumed CI success.
-
No full-cluster restart or multi-CN upgrade was executed. Real transactional migration and fresh-upgrader behavior were exercised locally.
-
No throughput benchmark was run. Literal prefix comparison adds no new ordinary SELECT/DML execution work; migration costs remain per outdated tenant.
9bc9afc to
aa0ccdb
Compare
|
mo-bot review · Commit: Review completed. Read the assessment. |
ed212bf to
424ba4f
Compare
|
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: 424ba4f06bf654d6958d9c70060fac7f33b1d61b
Assessment: approve
Literal-prefix filtering and transactional view repair satisfy the reported metadata-discovery contract. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
All 10 focused tests passed across planner, sysview, bootstrap and SQL integration, including rollback, retry and persisted idempotence.
-
Isolation preflight, native prerequisite build and static checks passed; source remained unchanged.
-
Complete discussion assessed. Commands, receipts and retained logs reconciled in attempt-1/validation-summary.json.
Limitations:
-
Already-final non-system tenants require the existing maintenance worker for convergence.
-
Frozen CI remained pending. No fresh race, full-suite, full-restart or multi-CN run was performed.
…T, and full generated-column expressions Consolidates the catalog metadata corrections for matrixorigin#30936, matrixorigin#30935 and upgrade ladder (matrixorigin#31497). Defect corrections (unchanged in substance from the reviewed rounds): - information_schema.COLUMNS binds the label-aware metadata helpers: ENUM/SET character/octet lengths follow the declared labels (multibyte included) and leave numeric metadata SQL NULL for ENUM/SET, keeping ordinary types byte-stable. - STATISTICS.SUB_PART and SHOW INDEX Sub_part return the numeric prefix length from mo_indexes.algo_params (mo_index_sub_part) and actual SQL NULL for non-prefix indexes. - information_schema.COLUMNS.GENERATION_EXPRESSION returns the full expression; the varchar(500) view cast is removed. - Fresh publication (bootstrap init, CREATE ACCOUNT, subscriptions) serves the corrected identities unconditionally; historical snapshot readers keep recognizing their recorded definitions. Delivery vehicle, per approved design revision 12 (docs/design/20261026-declared-catalog-metadata-publication-and-repair.md, sha256 47ebfe15a45940221c3d2d5ad6955e11a5c89a1a909fa9d4e382e1ac9db0a599): - pkg/bootstrap/versions/v4_0_8 is the successor hop of the frozen 4.0.7 stage: two idempotent legs on the upstream shared builder (COLUMNS gate 109; prefix-aware STATISTICS gate 41), protocol floor 118, offset len(tenantUpgEntries), a plain per-entry HandleTenantUpgrade (no paging), no cluster entries; registered after v4_0_7.Handler. The revision-9 v4_0_18 carrier is deleted. - The four 4.0.7-literal admission guards in checkUpgrade are re-keyed onto the consolidated-line comparison and the registered frozen handle's identity (D11-1/D11-2): legacy CDC admission at route creation, recheck and recovery; the ready frozen-source validation; the interrupted offset-only route rejection - upstream's message texts, error types and pre-mutation ordering are unchanged. - The on-demand tenant walks continue past the paged 4.0.7 stage to the final version before caching completion (D12-1/D12-2): MaybeUpgradeTenant resumes the register walk in one bounded service-owned transaction after the stage commits, UpgradeOneTenant no longer terminates at the frozen branch for accounts already at 4.0.7, and both walks keep mo_account.create_version as the sole progress marker: a failure leaves the cache unset and resumes from the committed stamp. - Oracles: the admission suite (CDC admission/rejection at the successor registration including the recovery path and direct succession, frozen-source and offset-only rejections at both the pre-mutation check and recovery validation), and the continuation suite at the real v4_0_7 plus v4_0_8 registration (late-login convergence with second-login idempotence, manual chaining, manual upgrade from an already-stamped 4.0.7 account, successor failure/ retry without premature caching, and the no-successor-SQL-before- stage-completion ordering), plus the re-derived route/hop tests on the consolidated ladder. Rebase onto current main 1c80f16 (2026-10-30 round; the head was 30 commits behind and the merge state DIRTY): - pkg/frontend/authenticate_test.go: upstream matrixorigin#31662 removed the CREATE ACCOUNT protocol ladder and its dedicated suite around our publication oracle; the retargeted TestCreateTablesInformationSchemaPublishesDeclaredMetadataUnconditionally now proves on the complete-current-set creation contract that the corrected declared-label COLUMNS identity and the prefix-aware STATISTICS identity publish and that no predecessor identity is ever authored. Consistent with upstream, account creation installs the complete current set or aborts. - pkg/embed/catalog_view_identity_test.go: a caller-owned 4.0.6 tenant walk now ends at the registered 4.0.8 successor, so the final-version assertions move off the frozen 4.0.7 (the UT Test / UT Coverage / Coverage / CI Required failures of run 40792282505 failed exactly this assertion at the previous head). - Upstream matrixorigin#31662's recurring columns/tables maintenance-scan removal and matrixorigin#31420's literal-prefix SHOW TABLES filter merge alongside this change without edits on this side beyond the conflict resolution above.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #31416
What this PR does / why we need it:
SHOW TABLESandinformation_schema.TABLEScan hide an ordinary table such asdemo_index_databecause underscores in the internal-indexLIKEpattern are wildcards. Use a literal prefix check while preserving user-suppliedLIKEand metadata visibility rules. Real index backing tables stay hidden.Keep the historical TABLES view definitions unchanged and update the current V118 definition. Reuse the existing transactional TABLES upgrade and bounded maintenance paths to refresh persisted views. No new 4.0.7 upgrade entry or version offset is added. Already-final tenants require the existing maintenance worker for convergence.
Validation