Repository navigation
Description
Is there an existing issue for the same bug?
- I searched exact error strings, failing syntax and affected native applications; no matching issue was identified. Related reports are distinguished below.
Application compatibility replay on official v4.2.5
Branch Name
Official stable release v4.2.5; current main has not been retested for this report.
Commit ID
1a44f3db3056e32975fde86ca0ab69a094996a3f (SELECT git_version() returns 1a44f3d).
Other Environment Information
Linux x86_64 standalone official binary, 4 CPUs, ~16 GiB container memory limit. SELECT VERSION() = 8.0.30-MatrixOne-v4.2.5. PyMySQL 1.2.3 client. Only fresh owned test schemas were used for SQL probes; the native Airflow diagnostic is a read-only SELECT against the retained test fixture.
Actual Behavior
Native application impact: 字符集、列类型、排序规则或表索引被 ORM 误识别。
CREATE TABLE meta_probe(id INT PRIMARY KEY,name VARCHAR(100),amount DECIMAL(10,2),choice ENUM('MiXeD','ABC'))
[]
SHOW FULL COLUMNS FROM meta_probe
[["id", "INT(32)", null, "NO", "PRI", null, "", "select,insert,update,references", ""], ["name", "VARCHAR(100)", null, "YES", "", null, "", "select,insert,update,references", ""], ["amount", "DECIMAL(10,2)", null, "YES", "", null, "", "select,insert,update,references", ""], ["choice", "ENUM('MiXeD','ABC')", null, "YES", "", null, "", "select,insert,update,references", ""]]
SELECT COLUMN_NAME,COLUMN_TYPE,DATA_TYPE,CHARACTER_SET_NAME,COLLATION_NAME FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME='meta_probe' ORDER BY ORDINAL_POSITION
[["id", "INT(32)", "INT", null, null], ["name", "VARCHAR(100)", "VARCHAR", "utf8", "utf8_bin"], ["amount", "DECIMAL(10,2)", "DECIMAL", null, null], ["choice", "ENUM('MiXeD','ABC')", "ENUM", null, null]]
Expected Behavior
Return MySQL-compatible type-name metadata and string column collation metadata. Preserve ENUM value case, lengths and privileges; lowercasing whole ENUM declarations is not a valid fix.
Steps to Reproduce
Use a dedicated fresh test schema (create one without DROP DATABASE), then run:
CREATE TABLE meta_probe(id INT PRIMARY KEY,name VARCHAR(100),amount DECIMAL(10,2),choice ENUM('MiXeD','ABC'));
SHOW FULL COLUMNS FROM meta_probe;
SELECT COLUMN_NAME,COLUMN_TYPE,DATA_TYPE,CHARACTER_SET_NAME,COLLATION_NAME FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME='meta_probe' ORDER BY ORDINAL_POSITION;Additional information
- Native applications: EspoCRM, phpMyAdmin, Nextcloud, Shiori.
- This is release v4.2.5 evidence, not a claim that the same failure remains on current main.
- Observation family
MO-OBS-015. App-side workarounds do not constitute an engine fix. - All disclosed values are owned synthetic fixtures; no passwords, tokens, application cookies or raw private logs are attached.
Activity
dengn commentedon Oct 12, 2026
Runtime recheck on current main
Built and actually ran upstream main
02a2823c2007d5e4fb4ada148e93743df337551a, withgit_version()=02a2823, Go 1.27.1, Linux amd64, the officialmake buildCPU entrypoint, gcc/g++, and separate fresh main cluster storage. Binary SHA-256:ce8b149f0da8c8a06ec8786c4d311795e6893420bd15be29d6e6b9cab44bb2f5. SQL checks ran 2026-10-12 06:04 UTC; upstream main was re-read before execution and still resolved to this SHA.Comparison: official v4.2.5 /
1a44f3db3056e32975fde86ca0ab69a094996a3f(git_version()=1a44f3d). Both sides used fresh owned schemas and identical regression fixture hashes. This checks the disclosed reproducer; complete native application workflows have not been rerun on main. No issue is being closed automatically.The related Piwigo integer metadata failure is fixed for the tested main fixture, while string Collation remains NULL:
Stable Type values:
SMALLINT UNSIGNED(16),SMALLINT UNSIGNED(16),VARCHAR(255). Consuming these Type strings verbatim for a fresh CREATE TABLE fails with 1064 and blocks native Piwigo mass_updates.Main Type values:
smallint unsigned,smallint unsigned,varchar(255). Consuming these Type strings verbatim succeeds. INSERT/SELECT at 65535 and 65534 preserves both values and NULL; a duplicate id is rejected with 1062. Capitalization and this unsigned-type roundtrip are corrected on main. The VARCHAR row's Collation is still NULL, so this does not demonstrate resolution of the complete original metadata report. ENUM-case behavior and the full native main application were not retested here. Related unsigned metadata report: #29846.Detailed SQL, assertions, source/build identity and JSON evidence (organization regression repository): https://github.com/matrixorigin/matrixone-app-regression/tree/01517d2f73abb5021ca545193c2af38ef653f278/evidence/main-02a2823
fix(sql): expose Unicode collation in SHOW FULL COLUMNS (#29912)
daviszhen commentedon Oct 16, 2026
Local main validation (2026-10-16)
Validated against MatrixOne
upstream/mainatb24d1b311555e0b6f3d56eb37f9a2e9617e9a5b7using a fresh local multi-CN Docker cluster.For string columns declared with utf8mb4_unicode_ci and utf8_unicode_ci,
SHOW FULL COLUMNSreturned the corresponding collation names, andinformation_schema.COLUMNSreturned the expected character-set and collation metadata. The non-string id column returned NULL collation, as expected.The SQL-level metadata path passes on latest main (including the merged metadata fix). Release-version and full application-workflow validation still need QA coverage.
daviszhen commentedon Oct 17, 2026
v4.2.5: same driver returns a different Java type for
NOW()than MySQLSpotted while running a Connector/J version matrix (5.1.49 / 8.0.33 / 8.4.0) against MatrixOne v4.2.5 (arm64) and MySQL 8.0.46 with identical JDBC code and URLs:
TimestampTimestampTimestampLocalDateTimeTimestampLocalDateTimeSo with the same 8.x driver, MySQL maps this expression to
java.time.LocalDateTimewhile MatrixOne maps it tojava.sql.Timestamp. Applications that cast the result (or usegetObject(i, LocalDateTime.class)) will behave differently on the two databases even though the driver is unchanged — and, notably, MatrixOne here matches the legacy 5.1 driver's behaviour rather than the 8.x behaviour.For contrast, a plain
DATETIMEcolumn read through the 8.x driver returnedLocalDateTimeon MatrixOne as well, so the divergence appears to be in the reported type metadata for the expression rather than in column handling generally. It may be worth checking what column type/precision flag MatrixOne reports forNOW().(Related note from the same matrix, in case it is useful here: with the 5.1.49 driver,
getString()on aDATETIMEreturns a trailing.0(2026-10-17 12:34:56.0), whereas the 8.x drivers return2026-10-17 12:34:56. That one is the legacy driver's own formatting, not a server difference, but it matters for migration scripts that compare datetime strings.)daviszhen commentedon Oct 20, 2026
最新 main 验证(2026-10-20)
基线:
309f618995af4ee23e3b9149365f4af77264090d;关联修复 PR:#29912。结论:原始元数据问题已解决。exact-main 的
SHOW FULL COLUMNS与information_schema.COLUMNS对utf8_unicode_ci/utf8mb4_unicode_ci返回正确 charset/collation。后续发现的 NOW() JDBC 类型差异属于独立兼容性范围,不影响本 issue 的原始 collation 元数据修复;建议分别跟踪。