Repository navigation
fix(sysview): expose native Unicode collation metadata - #29828
mergify[bot] merged 4 commits into
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? |
|
Reviewed head [P2] Keep the protocol-100 historical-view migration gate activeLocation: Changing For a tenant whose current COLUMNS definition is V100 (for example, an already-4.0.13 tenant waiting for the protocol-109 barrier during a rolling upgrade), querying a V58 historical snapshot now makes I reproduced this by adding the following case to the existing {name: "protocol100 migration remains active before protocol109",
current: sysview.InformationSchemaColumnsV100DDL(),
wantResolve: true, wantAdapt: true},The default historical definition in that test is V58. The new case fails: the returned SQL is the unchanged legacy definition, rather than Please separate “has the protocol-100 on-demand View-column migration” from “has the latest native-Unicode projection”, and accept both V100 and V109 definitions for the historical adaptation gate. Keep the historical selector projection unchanged. Please cover this pre-109 case (including a cross-tenant snapshot); a useful integration assertion is the existing legacy-snapshot width check immediately after the V100 repair, before the V109 repair. Validation: |
|
Updated the branch with commit Changes:
Validation in the local MatrixOne Docker image:
All passed. |
|
Re-reviewed latest head The previous P2 historical-snapshot regression is resolved. The real Additional local validation passed using the existing native dependency installation:
No remaining blocking findings from this review. Recommendation: approve once the remaining CI checks complete successfully. My earlier request-changes recommendation for |
|
Fixed the failing checks in c0819c9.
|
|
The latest UT Coverage attempt no longer fails on the COLUMNS fixtures. Its remaining failures are unrelated embedded-cluster flakes in pkg/tests/issues (TestIssue23861FulltextSnapshotRestore timed out during concurrent snapshot round 13; TestPrivilegeCacheTracksRemoteCatalogChanges lost the cluster while tearing down). Both tests pass locally in Docker. I reran the failed jobs (run 38047586618, attempt 2); UT Coverage is currently running. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review of c0819c98543781f214da31f170a67f709d65392a against declared base/merge-base e5dd4724f782067e1c76c38c9d2f55cebceda4a9. No blocking findings.
Design and ownership:
- The fix extends the existing sysview projection builder and keeps the four existing metadata branches and visibility rules. It introduces no parallel metadata store, execution path, or state machine.
- A separate 4.0.14 migration is necessary for tenants already past 4.0.10. The V100 definition remains frozen; protocol 109 admission uses the existing common-protocol validator, both before tenant enumeration and before the entry writes. DROP/CREATE and tenant-version advancement remain owned by the existing transaction framework.
- The historical binding predicate now distinguishes on-demand column migration readiness from the latest selector projection. V100 and V109 both qualify, while historical selector mappings remain unchanged. The previous P2 in issuecomment-6095695573 is addressed, including the pre-109 cross-tenant snapshot case. The later fixture/tenant-bootstrap corrections are present; there are no inline review threads outstanding.
Validation:
- Verified exact-head CI run 38047586618: Ubuntu UT, coverage, SCA, and both PROXY/PESSIMISTIC multi-CN BVT jobs passed. UT logs explicitly show
TestUnicodeCollationConsumerContractandTestViewDescriptionSubscriptionpassing. - Independently extended the existing embedded subscription test temporarily, without changing production code or adding another cluster fixture. Both native collations return the expected identities through local tables, local Views, subscription tables, and subscription Views. A V100 snapshot retains NULL native-selector metadata after V109 migration. A binary prepared metadata query created before migration refreshes correctly afterward. The existing real-transaction rollback/retry/idempotence assertions also passed. The expanded test passed in 9.88s on Darwin/arm64, Go 1.27.1, through the repository CGo wrapper; reviewer-only changes were removed.
- Audited implementation
+191/-13, tests/results+339/-28, documentation0/0separately. The result-file changes are limited to the new selector arms and the corresponding definition length. New migration tests include real transaction failure injection, rather than relying only on the in-memory rollback simulation.
Performance: ordinary TP planning/execution and ordinary prepared-statement paths gain no new work in this patch. Added costs are the metadata CASE arms, V100 template construction during historical metadata binding, and the one-time gated tenant refresh. The prepared metadata invalidation case was exercised; no TP throughput benchmark or local mixed-binary rollout was run, so this is not a quantitative zero-regression claim.
Merge Queue Status
This pull request spent 4 minutes 7 seconds in the queue, with no time running CI. ReasonThe pull request can't be updated
HintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. Requeued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 14 seconds in the queue, including 1 second running CI. Required conditions to merge
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #29206 (information_schema.COLUMNS metadata)
What this PR does / why we need it:
information_schema.COLUMNSreturnedNULLfor columns using the native Unicode collation identities (utf8_unicode_ciandutf8mb4_unicode_ci). This made otherwise valid schemas look incomplete to ORM and metadata clients.This PR:
utf8/utf8mb4andutf8_unicode_ci/utf8mb4_unicode_ci;Validation was run in the local MatrixOne Docker build: