Repository navigation
Description
Consolidated tracking scope: C09 utf8mb3 repertoire and persisted charset identity
Original reproductions and discussions remain available in the source issues below. Administrative consolidation is not a claim that a defect is fixed. Each input family and execution path retains independent acceptance.
Included reports
- #30800 — [Bug]: CHARACTER SET utf8 (utf8mb3) columns accept 4-byte characters MySQL rejects with 1366
Acceptance checklist
- Retain the concrete utf8/utf8mb3-column supplementary-character reproduction as acceptance evidence for the C09 repertoire scope already handed off here from [Subtask]: C09 — Integrate UCA400, UCA0900 and distinct utf8mb3 semantics end to end #29488.
- Apply the declared utf8mb3 repertoire to DML, with strict/non-strict error or adjustment diagnostics independently checked against MySQL; ordinary three-byte characters and utf8mb4 supplementary characters remain valid controls.
- Preserve effective column charset identity through SHOW CREATE and dump/restore; do not silently widen a declared utf8mb3 domain.
- Retain the existing C09 Unicode collation consumer matrix and release gates. This report is not the malformed-UTF8-byte validation issue [Bug]: invalid UTF-8 bytes can be inserted into utf8mb4 varchar #25302.
Summary
Several MySQL-compatible Java application schemas cannot initialize on MatrixOne because the parser rejects the common MySQL collation utf8mb4_unicode_ci or utf8_unicode_ci. This blocks application startup before workflow execution.
Environment
- MatrixOne image:
matrixorigin/matrixone:main-8e8e199 - MySQL protocol:
127.0.0.1:6001 - Server version:
8.0.30-MatrixOne-v1.3.0 - MatrixOne source checkout used by the local cluster:
ba8954d543af0bdfb1948a8b89f77f5235ac9259 - Reproduced during the local 16-application scenario-runner validation on 2026-09-21.
Application evidence
The following unmodified upstream application schemas fail with the same MatrixOne error:
guns:unsupported collation utf8mb4_unicode_ciat schema line 142jeecgboot:unsupported collation utf8_unicode_ciat schema line 30ruoyi-vue-pro:unsupported collation utf8mb4_unicode_ciat schema line 24
The application pods remain unready; the adapter itself is healthy.
Minimal reproduction
DROP DATABASE IF EXISTS mo_collation_repro;
CREATE DATABASE mo_collation_repro;
USE mo_collation_repro;
CREATE TABLE t_collation (
name VARCHAR(20) COLLATE utf8mb4_unicode_ci
);Actual result:
ERROR 20301 (HY000): invalid input: unsupported collation 'utf8mb4_unicode_ci'; replace it with 'utf8mb4_general_ci' when restoring legacy MatrixOne DDL
The equivalent utf8_unicode_ci form is rejected as well.
Expected behavior
MatrixOne should accept the MySQL-compatible collation in schema DDL, or provide a documented compatibility-safe mapping/no-op when the requested collation is not materially different from the effective collation. A supported MySQL application should not be blocked during startup by this declaration.
Related
- [Bug][Compatibility]: Gitea cannot initialize because ALTER DATABASE COLLATE is rejected #28998 covers
ALTER DATABASE ... COLLATErejection for Gitea. - [Bug]: Default collation is binary/case-sensitive; explicit _ci collations are ignored #25096 and [Subtask]: Complete ordinary binary-string and charset/collation semantics #27216 track broader charset/collation compatibility.
Activity
daviszhen commentedon Sep 22, 2026
补充 Java 应用场景证据(关联汇总 #29220):
jeecgboot上游jeecg-boot/db/jeecgboot-mysql-5.7.sql使用utf8_unicode_ci;适配器在导入前改写为utf8_general_ci。guns上游 schema 使用utf8mb4_unicode_ci;适配器改写为 MatrixOne 可接受的 collation。ruoyi-vue-pro上游 schema 使用utf8mb4_unicode_ci;适配器同样改写。Before:直接执行上游 DDL 返回
unsupported collation,应用无法完成初始化。After:改写为
utf8_general_ci/utf8mb4_general_ci后可以初始化,但这不是原始 MySQL DDL 的兼容性证明,且可能改变比较/排序语义。当前适配器配置和实现位于
mo-benchmark-java-apps/matrixone-scenario-runner/config/java_integrations.json与apps/java/entrypoint.sh。目标是支持原始 collation 或提供明确、语义可验证的兼容映射,随后删除适配。daviszhen commentedon Sep 23, 2026
Additional real-application reproduction from Grafana 12.1.1 against MatrixOne:
grafana/grafana:12.1.18.0.30-MatrixOne-v1.3.0, MySQL protocol on port 6001GF_DATABASE_TYPE=mysql, databasegrafana_moGrafana startup fails during its first migration with:
The exact failing statement is:
Grafana exits before readiness and cannot use MatrixOne as its MySQL-compatible metadata database. This confirms the existing issue also affects a current Go application migration, not only the Java applications previously reported.
ck89119 commentedon Sep 29, 2026
This issue is reused as the canonical workstream for C09 under #29479. The newly created series subtask #29488 is being closed as duplicate tracking, not as completed functionality. Please retain the full additional scope and acceptance below alongside the original report. Existing open implementation PRs are references, not completion evidence.
Enable real unicode_ci and 0900 semantics only after every SQL/storage consumer is ready.
Tracking disposition: this C-series alias is to be closed as duplicate/reused tracking in favor of #29206. The canonical issue remains responsible for the complete scope and acceptance below; closure is not a product-completion claim.
Scope
Acceptance criteria
Describe implementation you've considered
Reuse #29206 and PR #29478 as the canonical implementation workstream, including the additional native-0900 integration acceptance recorded here. Backend-only evidence does not certify SQL activation.
Additional information
feat(collation): wire native Unicode CI semantics (#29601)
feat(collation): establish versioned index key format (#29834)
dengn commentedon Oct 12, 2026
Additional BI-client handshake evidence, independently rechecked on 2026-10-12.
Tested server: local
workbinary at23d8f61252f3017dff218b530817a240206fd762; runtimegit_version() = 23d8f61252,VERSION() = 8.0.30-MatrixOne-v. Standalone LOG/TN/CN on Linux x86_64. This is not a retest of current main or a released version.The unsupported collation also blocks clients before schema DDL, during MySQL connection admission:
utf8mb4_general_ciSELECT 1succeedsutf8mb4_unicode_ciinvalid input: unsupported collation 'utf8mb4_unicode_ci'utf8mb4_0900_ai_ciSELECT 1succeedsMinimal native-client reproduction (credentials supplied through environment variables):
Real BI impact:
sha256:b28bae15e219c998fb0e0424ed724930cc61b1f61fb404d47c862f9a23f9e572: the built-in MySQL datasource reportsdb query error: invalid connection. Its connection string fixescollation=utf8mb4_unicode_ci. Adding charset/collation fields to datasource JSON did not replace that fixed string.@evidence-dev/[email protected]: the default mysql2 connection also fails. A diagnostic-only override of the connection charset toutf8mb4enables SQL execution. It is not an upstream product fix, and separate connector-side DECIMAL-to-Number precision loss remains.This comment supplies an application/handshake regression fixture for the existing collation work, rather than opening a duplicate schema-collation issue. Related admission work: #29481; end-to-end UCA tracking: #29206 / #29479. Supporting an accepted name should preserve its actual semantics, not silently alias Unicode collation to general-ci.
dengn commentedon Oct 12, 2026
Native BI/driver follow-up on 2026-10-12 UTC, pinned MO
23d8f61252f3017dff218b530817a240206fd762:invalid connection). Its health check and two scalar/metric queries fail; a saved 10-panel dashboard returns failures for all 10 panel requests. The same Grafana instance connects to an isolated MySQL 8.0.30 datasource and executes both positive-control queries successfully.utf8mb4_general_ciboth connect to MO and returnSELECT 1 = 1; explicitutf8mb4_unicode_ci, with or withoutcharset=utf8mb4, producesunexpected EOF/invalid connectionduring initialization. All four configurations succeed against MySQL 8.0.30.SET NAMES utf8mb4 COLLATE utf8mb4_general_cisucceeds, whileSET NAMES utf8mb4 COLLATE utf8mb4_unicode_cireturns error 20301,unsupported collation 'utf8mb4_unicode_ci'. SubsequentSELECT 1in that same session succeeds.This independently confirms the collation limitation and reproduces the connection-time failure pattern. The Go probe is a controlled companion test, not a claim that every internal Grafana handshake step was packet-traced; current HEAD was not redeployed. Saving the dashboard configuration is explicitly not counted as successful data rendering.
daviszhen commentedon Oct 20, 2026
最新 main 验证(2026-10-20)
基线:
309f618995af4ee23e3b9149365f4af77264090d;相关 PR:#29601/#29828/#29834/#29912。结论:部分解决。exact-main 已验证 utf8/utf8mb4 Unicode DDL 可用,
SHOW FULL COLUMNS/information_schema.COLUMNS返回正确 charset/collation,握手 collation ID 192/224/255 可用,planner/sysview/frontend 相关 UT 通过。但该 issue 的完整 UCA/application 语义(排序、分组、连接、唯一索引、真实应用 schema 等)仍未全部覆盖;尤其大小写不敏感唯一键问题仍可在 #28164 复现。因此建议继续保留为开放的完整兼容性跟踪。