Skip to content

[Subtask]: C01 — Unify supported charset/collation identities and versioned metadata #29480

Closed

Description

@ck89119

Parent Issue

#29479 — C01

Detail of Subtask

Make SQL names, protocol IDs, effective semantics and physical key formats independently representable and consistent.

Scope

  • Reuse pkg/common/collation, sysview definitions and PR test: cover canonical collation admission and legacy SQL behavior #29055; keep charset, collation, semantic revision, physical format and expression coercibility distinct.
  • Represent ascii, utf8mb3/utf8mb4 and GBK without collapsing them into one UTF8 class; preserve existing persisted IDs and zero-value behavior.
  • Use one supported-capability definition across admission and metadata. Reject new latin1/latin1_* requests instead of normalizing them to UTF-8.

Acceptance criteria

  • Type, plan, pipeline, catalog, clone and cache round trips preserve every relevant field; unknown versions fail closed.
  • Native 0900 semantics remain distinguishable from historical general-ci aliases.
  • New domains remain disabled until SQL, index, storage and upgrade gates pass; SHOW/information_schema/protocol metadata agrees with executable capabilities.
  • Regenerate protobuf sources normally; document allocation bounds, compatibility and the rollout owner before implementation approval.

Describe implementation you've considered

Reuse the merged frozen backend in #29054 and the metadata/tuple work in #29055. Do not add per-key descriptors, a sidecar or a second registry. C11 owns historical data migration.

Additional information

  • Prerequisites: See the coordination/release-gate notes below; work can start with C01.
  • Existing implementation references: feat: add frozen collation weight backend for #28164 #29054, test: cover canonical collation admission and legacy SQL behavior #29055
  • Native SQL activation also requires the applicable C11 upgrade and C12 release gates.
  • Shared scope: five charset families and twelve canonical collations; latin1/latin1_* are explicitly unsupported for new requests.
  • Exclusions: partition tables, stored procedures, UDFs, warning count/text compatibility, utf16/utf32/gb18030 and other unlisted collations.
  • Existing product defaults are not changed incidentally. Preserve legacy objects; do not use accepted DDL or a backend-only test as end-to-end evidence.
  • This issue does not itself approve a production design, an open PR, or unverified CI evidence.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions