Repository navigation
Description
Summary
The MatrixOne Java-application compatibility catalog currently needs application-specific SQL/Schema normalization before several real MySQL application schemas can be initialized. The normalized schema lets the application start, but it also means the upstream MySQL schema was not accepted unchanged.
This issue tracks the cross-application compatibility gap and records the before/after adaptations. Feature-specific fixes should be implemented and linked to the related issues below; once fixed, the adapters should be removed and the original upstream SQL should be used again.
Environment
- MatrixOne image:
matrixorigin/matrixone:main-8e8e199 - MatrixOne source checkout used by the local scenario cluster:
ba8954d543af0bdfb1948a8b89f77f5235ac9259 - MySQL protocol endpoint:
matrixone:6001 - Application catalog:
mo-benchmark-java-apps/matrixone-scenario-runner/config/java_integrations.json - Adapter implementation:
apps/java/entrypoint.sh - Application source revisions are pinned in the catalog; the following examples use the JeecgBoot, YShop and Paicoding revisions recorded there.
Application evidence and adaptations
| Application(s) | Upstream form | MatrixOne adapter change | Compatibility meaning |
|---|---|---|---|
ruoyi-vue-pro, springblade, guns, smart-admin, vblog, and parts of jeecgboot/yshop |
MySQL schema declarations such as KEY idx_k(k) USING BTREE |
Remove USING BTREE |
The adapter historically treated the index-algorithm declaration as unsupported. The current image probe accepts the minimal form, so this row is a regression/adapter-cleanup item rather than a new failure on the tested image. |
jeecgboot |
CHARACTER SET utf32 in the upstream dump |
Map utf32 to utf8mb4 |
The original character-set declaration is rejected by MatrixOne and the mapping can change storage/character semantics. |
jeecgboot |
MySQL CREATE PROCEDURE ... BEGIN ... END routine block |
Omit the routine block | The application starts without the routine, but routine functionality is lost. |
yshop |
0000-00-00 00:00:00 seed value |
Replace with 1970-01-01 00:00:00 |
The source seed value is valid for common MySQL compatibility modes but is rejected by MatrixOne strict temporal validation; the replacement changes data semantics. |
paicoding |
Liquibase update_schema_*.sql migrations containing ADD KEY/ADD INDEX and comment-only fragments |
Normalize those migration files and preload a baseline schema | This is an application migration workaround. The original migration stream must be verified independently before claiming MySQL compatibility. |
web-flash |
Activiti expects to create its MySQL tables at runtime | Preload the Activiti MySQL schema and disable runtime schema creation | This is a bootstrap/schema lifecycle workaround; it should not be reported as native execution of the upstream initialization path. |
Database-name rewrites (for example pig, smart-admin, vblog, and jeecgboot) are deployment isolation changes, not themselves MatrixOne compatibility bugs.
Confirmed minimal reproductions
1. MySQL utf32 character set
DROP DATABASE IF EXISTS mo_java_utf32;
CREATE DATABASE mo_java_utf32;
USE mo_java_utf32;
CREATE TABLE t_utf32 (name VARCHAR(20) CHARACTER SET utf32);MatrixOne result on the environment above:
ERROR 20301 (HY000): invalid input: unsupported character set 'utf32'
MySQL accepts the declaration. The JeecgBoot adapter currently rewrites it to utf8mb4 before import.
2. Zero DATETIME seed
DROP DATABASE IF EXISTS mo_java_zero_date;
CREATE DATABASE mo_java_zero_date;
USE mo_java_zero_date;
CREATE TABLE t_zero (value DATETIME);
INSERT INTO t_zero VALUES ('0000-00-00 00:00:00');MatrixOne returns a truncated DATETIME error; the YShop adapter replaces the value with 1970-01-01 00:00:00.
3. MySQL stored routine
DROP DATABASE IF EXISTS mo_java_routine;
CREATE DATABASE mo_java_routine;
USE mo_java_routine;
CREATE PROCEDURE p_app_repro()
BEGIN
SELECT 1;
END;MatrixOne rejects the MySQL compound routine body with a parser error; JeecgBoot omits the routine block.
Expected behavior
- MatrixOne should accept the original MySQL-compatible declarations and migration statements where their semantics are supported.
- Unsupported features should return a targeted compatibility error and be documented, rather than requiring silent application-specific rewrites.
- A scenario result must distinguish:
- upstream SQL executed unchanged;
- SQL adapted for MatrixOne;
- application bootstrap behavior changed;
- feature omitted.
- Once a feature is fixed, the corresponding adapter flag and rewrite must be removed and the original application schema must be re-tested.
Related issues
- [Compatibility] Common MySQL collations reject Java application schema initialization #29206 — common MySQL collations reject Java application schema initialization
- [Compatibility] Common MySQL zero DATETIME literals block application schema loading #29207 — common MySQL zero DATETIME literals block application schema loading
- [Bug]: MySQL-style CREATE PROCEDURE/FUNCTION BEGIN...END syntax is not supported #25409 — MySQL-style
CREATE PROCEDURE/CREATE FUNCTION BEGIN...ENDsyntax is not supported - [Feature Request]: Assorted unimplemented functions & locking/set-op syntax #25107 — existing compatibility tracker mentioning
CREATE INDEX ... USING BTREE - [Compatibility]: COPY ALTER cannot combine ADD COLUMN and ADD INDEX in one statement #28052 — related COPY ALTER
ADD INDEXcompatibility limitation
Acceptance criteria
- Add focused MySQL-vs-MatrixOne regression tests for each still-failing construct.
- Verify JeecgBoot, YShop and Paicoding using their original upstream schema/migrations without adapter normalization.
- Preserve the application-specific workaround only as a temporary, explicitly labeled fallback.
Activity
daviszhen commentedon Sep 22, 2026
按反馈改为“一类兼容性问题一个 issue”。具体问题沿用/拆分到 #29206(collation)、#29207(zero DATETIME)、#25409(MySQL stored routine),新增 utf32 独立 issue;当前镜像已可执行的 BTREE、DECIMAL、独立 ADD KEY 不另报 bug。