Skip to content

[Compatibility]: SHOW FULL COLUMNS returns uppercase type names and NULL string collations (v4.2.5) #29904

Closed

Description

@dengn

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

  1. added
    kind/bug
    on Oct 11, 2026
  2. dengn commented on Oct 12, 2026

    @dengn
    ContributorAuthor

    Runtime recheck on current main

    Built and actually ran upstream main 02a2823c2007d5e4fb4ada148e93743df337551a, with git_version() = 02a2823, Go 1.27.1, Linux amd64, the official make build CPU 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:

    CREATE TABLE reflection_source (
      id SMALLINT UNSIGNED NOT NULL,
      `rank` SMALLINT UNSIGNED DEFAULT NULL,
      global_rank VARCHAR(255) DEFAULT NULL, UNIQUE KEY(id)
    );
    SHOW FULL COLUMNS FROM reflection_source;
    

    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

  3. daviszhen commented on Oct 16, 2026

    @daviszhen
    Contributor

    Local main validation (2026-10-16)

    Validated against MatrixOne upstream/main at b24d1b311555e0b6f3d56eb37f9a2e9617e9a5b7 using a fresh local multi-CN Docker cluster.

    For string columns declared with utf8mb4_unicode_ci and utf8_unicode_ci, SHOW FULL COLUMNS returned the corresponding collation names, and information_schema.COLUMNS returned 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.

  4. daviszhen commented on Oct 17, 2026

    @daviszhen
    Contributor

    v4.2.5: same driver returns a different Java type for NOW() than MySQL

    Spotted 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:

    try (ResultSet r = st.executeQuery("select @@time_zone, now()")) {
        r.next();
        r.getObject(2).getClass().getSimpleName();
    }
    driver MatrixOne v4.2.5 MySQL 8.0.46
    5.1.49 Timestamp Timestamp
    8.0.33 Timestamp LocalDateTime
    8.4.0 Timestamp LocalDateTime

    So with the same 8.x driver, MySQL maps this expression to java.time.LocalDateTime while MatrixOne maps it to java.sql.Timestamp. Applications that cast the result (or use getObject(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 DATETIME column read through the 8.x driver returned LocalDateTime on 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 for NOW().

    (Related note from the same matrix, in case it is useful here: with the 5.1.49 driver, getString() on a DATETIME returns a trailing .0 (2026-10-17 12:34:56.0), whereas the 8.x drivers return 2026-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.)

  5. daviszhen commented on Oct 20, 2026

    @daviszhen
    Contributor

    最新 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 元数据修复;建议分别跟踪。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions