Repository navigation
Description
Parent Issue
#32278 (D25, category A). Coordinate the released Unicode 15.0 contract with the standalone 4.2-dev change in #33559.
Detail of Subtask
Carry forward the semantics of 4.2.x identifiers, generated expressions, and existing full-text indexes in the next major release cut from main. Go 1.26.4 uses Unicode 15.0. Go 1.27.1 uses Unicode 17.0, which changes some case mappings, fold cycles, and character classifications. A plain code upgrade can therefore change how existing catalog names, stored keys, and indexed text are interpreted.
Reproduction
Reproduced on local Darwin/arm64 builds of the v4.2.9 release source (6c05e42f9f660a207077b050b8ec285ccf3f8103) and main (38c68d02ca62521e61da7783863ae7bd21ee055a). The test wrote and flushed these tables on v4.2.9, stopped it, and reopened the same data directory on main. The main catalog reached READY at 4.0.7/53.
CREATE TABLE named_cols (id INT PRIMARY KEY, `` INT, `ɤ` INT);
INSERT INTO named_cols VALUES (1,17,99);
CREATE TABLE text_keys (
id INT PRIMARY KEY, s VARCHAR(8),
k VARCHAR(16) GENERATED ALWAYS AS (HEX(UPPER(s))) STORED,
UNIQUE KEY uk(k)
);
INSERT INTO text_keys(id,s) VALUES (1,'ɤ');
SELECT ``, `ɤ` FROM named_cols;
SELECT k, HEX(UPPER(s)),
(SELECT COUNT(*) FROM text_keys WHERE k=HEX(UPPER('ɤ'))) FROM text_keys;On v4.2.9, the column query returned 17,99; the stored key and recomputed key were both C9A4, and lookup found one row. On main, the column query returned error 20301 for an ambiguous column reference. The stored key stayed C9A4, recomputation returned EA9F8B, and lookup found zero rows. A separate case-insensitive REGEXP_LIKE('ɤ','^$','i') changed from 0 to 1.
Describe implementation you've considered
Reuse the Unicode 15.0 data and released behavior finalized in #33559. Use the existing binder, catalog, expression, and tokenizer owners to preserve the semantics of upgraded objects. If this major release adopts Unicode 17 for new SQL objects, specify when each rule is selected and how existing definitions and stored results remain consistent. Any intentional conversion of existing metadata, generated keys, or postings needs an explicit migration or rebuild with collision handling and recovery. Resolve the rule at an existing binding, schema, or index boundary wherever possible, outside per-row execution.
Additional information
Release acceptance requires upgrading from the latest official 4.2.x build at release time and reopening the same data. Verify identifier resolution, subsequent insert and update, generated key lookup and uniqueness, existing and newly indexed text, and case-sensitive and case-insensitive regex behavior. Check logical dump/restore and a second restart. Cover both source-release and fresh-main objects, connector column mappings, and representative SQL performance and allocations. Record the expected behavior if an upgrade encounters names or keys that collide under Unicode 17.
Activity
docs(skills): strengthen upgrade compatibility checks (#33712)