Repository navigation
feat(collation): add isolated MySQL UCA400 key backend - #29478
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? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review of exact commit 8769a01 against d8152cb.
Design: the bounded library-only increment is coherent. Existing Domain values/key bytes are unchanged; the two domains reuse the pinned Vitess table, with the independently observed U+FFFF correction localized to the adapter. No SQL/catalog/index activation is implied. U4P1 preserves PAD SPACE ordering (including lower-than-SPACE weights), and its validator enforces canonical framing. Repertoire/UTF-8/overflow rejection occurs before scratch mutation; buffers have linear checked size bounds and no cross-call ownership.
Read all source/test/documentation changes and the independent oracle generator/fixture contract. I independently ran the whole collation package at this commit, including a private 100,000-pair deterministic sequence challenge: concatenate committed MySQL sample inputs and raw oracle weights, compare the latter with a separate implicit-SPACE comparator, then compare public Key outputs and ValidateKey. PASS; package 2.805s. Existing frozen domains, all BMP plus sampled supplementary oracle mappings, full scalar allocation bounds, malformed input, scratch reuse and framing tests also passed. The private QA test was kept outside the submitted change.
No blocking design, correctness, unhappy-path, performance or test-quality finding in this isolated foundation. There were no prior substantive review comments to close. Approval does not claim native SQL collation support or close the explicitly deferred integration/rollout gates of #29206.
Merge Queue Status
This pull request spent 1 hour 10 minutes 50 seconds in the queue, with no time running CI. ReasonThe merge conditions cannot be satisfied due to failing checks
HintYou may have to fix your CI before adding the pull request to the queue again. Waiting for any of
All conditions
Requeued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 1 hour 10 minutes 12 seconds in the queue, including 1 hour 9 minutes 53 seconds running CI. Required conditions to merge
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #29206. This is a standalone backend prerequisite, not a change that closes the issue or enables either SQL collation name.
What this PR does / why we need it:
Add isolated MySQL-compatible UCA 4.0.0 comparison-key domains for future
utf8mb4_unicode_ciandutf8_unicode_cisupport. These collations cannot safely be aliased to general-ci or UCA 9.0: their equivalence and padding contracts differ.Scope and follow-up
No SQL admission, persisted schema IDs, catalog, planner or index paths change. Both SQL collation names remain unsupported. Follow-up integration must reconcile metadata/tuple, SQL consumers and index maintenance with #29055–#29057, plus persisted filtering, recovery and mixed-version admission. Database default inheritance must also coordinate with #29374. This backend can be reviewed independently of those drafts.
Validation
Validated commit:
8769a01e26eaf97e094460d164ef3091dd3065da, based on maind8152cb08d7e73316034c33aaf0e7bc01c176f91.Local macOS arm64, using existing native CGo libraries:
go test ./pkg/common/collation -count=1: PASS, including unchanged existing key-freeze tests.go test ./pkg/common/collation -race -count=1 -cover: PASS; package statement coverage 94.8% (not PR changed-line coverage).go vet ./pkg/common/collationandgit diff --check: PASS.Full SQL/application/distributed BVT is not claimed: this PR deliberately leaves SQL activation closed. GitHub CI is pending and separate from local validation.
GPT-6 Sol medium design and final overall review completed with no remaining material blocker. The review covered framing, bounded resources, oracle independence, compatibility and the disabled admission boundary.