Skip to content

[Bug]: Preserve 4.2 SQL Unicode semantics before the Go 1.27.1 upgrade #33559

Backlog

Description

@XuPeng-SH

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

4.2-dev. Land this compatibility change as a standalone PR on Go 1.26.4 before the toolchain upgrade in #33538.

Commit ID

The Go 1.27.1 candidate reviewed at 30e84debc6a50dad0d846577dcc997fb895c242f still has uncovered paths. The v4.2.9 release baseline uses Unicode 15.0 through Go 1.26.4.

Other Environment Information

Local Go 1.26.4 and Go 1.27.1 controls confirmed the table and case-mapping differences on Darwin/arm64. The PR assessment contains public SQL results and a MongoDB DDL planner probe.

Actual Behavior

With Unicode 15.0, Ɤ and ɤ can be distinct SQL names. Go 1.27.1 uses Unicode 17.0. It lowercases Ɤ to ɤ, uppercases ɤ to Ɤ, and matches the pair in a case-insensitive regexp. Existing generated values, identifier maps, or full-text postings can then disagree with new lookups or writes. The current upgrade PR has remaining failures in FULLTEXT2 covered projections and index selection, Parquet field mapping, mo_table_col_min/max, and MongoDB SHOW CREATE TABLE path rendering. Latest assessment

Expected Behavior

Released 4.2 SQL names, generated expressions, type domains, and full-text indexes keep the same meaning under both toolchains. Existing definitions and new writes use one stable set of 4.2 rules.

Steps to Reproduce

On the released baseline and the unprotected Go 1.27.1 build, run the scalar probe below. With the respective stock Unicode rules it gives (EA9F8B, C9A4, 0) and (C9A4, EA9F8B, 1). For the partially protected candidate, use the FULLTEXT2, Parquet, statistics, and DDL probes in the linked review.

SELECT HEX(LOWER('Ɤ')), HEX(UPPER('ɤ')), REGEXP_LIKE('ɤ', '^Ɤ$', 'i');

Additional information

  • Use one versioned Unicode 15.0 data source for the affected SQL owners. Keep the previous operation at each boundary, including lowercase keys, simple fold equality, and character classification. Reuse bound column identities where possible. Keep SQL regular-expression compilation and matching on the same tables, and share tokenizer rules for full-text indexing and search.
  • Trace released writers and all corresponding readers and lookups, including SHOW CREATE and restore. Keep the pinned source reproducible and preserve its upstream license. Keep ASCII fast paths and select behavior outside the per-row path.
  • Verify ordinary SQL, generated values and unique constraints, ENUM/SET resolution, ILIKE, case-folding regex and Unicode properties, and full-text writes and lookup. Cover the known connector and planner cases. Flush the released data, stop the old server and reopen the same directory on Go 1.27.1. Check existing rows, new inserts and updates, restart and logical restore. Compare representative SQL time and allocation costs with the current baseline.

Activity

  1. self-assigned this
    on Dec 1, 2026
  2. added a commit that references this issue on Dec 1, 2026
    2f0e11d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions