Repository navigation
fix(sql): expose Unicode collation in SHOW FULL COLUMNS - #29912
mergify[bot] merged 10 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 Recommendation: request changes. One confirmed P2 compatibility regression. P2: preserve NULL Collation for binary string columnsAt The MySQL SHOW COLUMNS contract specifies a collation for nonbinary string columns and NULL for other columns. This PR introduces incorrect introspection metadata for existing binary columns; mirroring the separate information_schema mapping does not establish the SHOW contract. Independently reproduced with the exact-head embedded SQL server: create table t(
b binary(4), v varbinary(4), bl blob, n int,
u varchar(20) collate utf8mb4_unicode_ci,
txt varchar(20) collate utf8mb4_bin
);
show full columns from t;The probe explicitly asserted non-NULL Validation: the modified Separate merge prerequisite: CI preflight failed in the PR-content action because the PR body is empty; CI Required failed and the main test/build workflows were skipped. Fill in the required description sections and obtain green required CI. The skipped checks are not validation evidence. Ordinary PR comment only; no formal review state changed. |
|
Addressed the review findings in commit
Local validation passed:
|
|
Re-reviewed current head Recommendation: approve from the code-review perspective, subject to required CI passing. The P2 binary-column Collation regression in my previous comment is resolved; this supersedes that old-head request-changes recommendation. No additional confirmed blocker. Removing selector 2 makes BINARY/VARBINARY/BLOB fall through to SQL NULL while retaining selector 1's Fresh exact-head validation with linked CGo:
Runtime checks used the system account; I did not independently execute a tenant SQL scenario or run the complete repository suite. No product code was modified by this review. The PR description is now populated and current-head CI preflight passed, resolving the prior content-check failure. Ubuntu UT, SCA, coverage and shared build remain in progress at posting time; merge should wait for required checks to pass. This review does not change native PRIMARY/UNIQUE activation scope. Ordinary PR comment only; no formal approval/review state changed. |
|
mo-bot review · Commit: Assessment: approve Reviewed the complete six-file delta and all supplied review concerns. The shared SHOW mapping exposes supported text collations while preserving binary/non-string NULLs, visibility rules and non-FULL output. The earlier binary-column regression is resolved; no actionable findings remain. Model: Session: Validation:
Limitations:
|
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 7ac411878bd8af6a6eb2d28ff144d7ee53dcc7d2
Assessment: approve
Reviewed the complete six-file delta and all supplied review concerns. The shared SHOW mapping exposes supported text collations while preserving binary/non-string NULLs, visibility rules and non-FULL output. The earlier binary-column regression is resolved; no actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a12d8f-7dea-77c2-a565-38d45b5564e4 · slot 0 · generation 0
Validation:
-
Verified the frozen HEAD, clean source checkout and patch contents; Go formatting and Go-only diff checks passed.
-
Traced the encoded-type decoder, information_schema mapping, table/view metadata sources, system/tenant branches, filtering and frontend result metadata.
-
Reviewed integration assertions for Unicode, default text, binary controls, numeric NULLs and ENUM literal preservation, including fixture cleanup.
-
Reused current-head successful Ubuntu UT, shared build, arm64 static analysis, coverage, PROXY BVT and pessimistic multi-CN BVT evidence; checked relevant test selection.
-
Verified all 11 golden-row changes affect only Collation. Full diff-check reports seven retained trailing-whitespace lines representing empty Comment fields.
-
Recorded the review in attempt-1/review-audit.json.
Limitations:
-
No local native tests or SQL replay were run; supplied CI evidence contains status summaries rather than detailed logs.
-
Linked issue bodies were not supplied; scope was assessed from the frozen PR description and comments.
-
Existing ENUM NULL behavior, Type formatting and native Unicode index admission remain explicitly outside scope.
-
Performance was assessed structurally: bounded decoding per SHOW metadata row, with no normal SQL execution-path change; no benchmark was run.
Merge Queue Status
This pull request spent 1 hour 51 minutes 12 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 ↓. |
|
已排查上一轮失败检查:Ubuntu/x86 UT 未进入编译/测试,checkout PR commit 时连续三次出现 |
Merge Queue Status
This pull request spent 3 hours 57 minutes 7 seconds in the queue, including 1 hour 33 minutes 52 seconds running CI. Required conditions to merge
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #29206
Related to #29904 (SHOW FULL COLUMNS collation metadata)
What this PR does / why we need it:
SHOW FULL COLUMNS.SHOW FULL COLUMNS.Collationconsistent withinformation_schema.COLUMNSfor ordinary string columns.NULLfor binary and non-string columns, matching the MySQL contract.Native Unicode PRIMARY/UNIQUE index admission remains intentionally fail-closed and is not changed here.
This PR is scoped to the collation metadata portion of #29904. The shared type renderer's uppercase/legacy-width
Typerepresentation is intentionally unchanged; changing that format requires a separate MySQL-oracle-backed compatibility decision so existing metadata consumers and ENUM literal case are not regressed.Validation:
./.agents/skills/mo-dev/scripts/mo-cgo-test ./pkg/sql/plan -run 'Test(Coverage_buildShowColumns|ShowColumnsTracksTargetDependency|CollationMetadata.*)' -count=1 -timeout=20m./.agents/skills/mo-dev/scripts/mo-cgo-test ./pkg/tests/sqlintegration -run '^TestUnicodeCollationConsumerContract$' -count=1 -timeout=25mmake build(passed on the preceding implementation commits)git diff --check