You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] DATA BRANCH DIFF full-row output fails with 'unsupported mysql type 0' on DECIMAL/vector columns (fixed on main) #24847
DATA BRANCH DIFF with the default full-row output fails when the table contains a DECIMAL (or vector) column: it raises unsupported mysql type 0 and returns no rows. OUTPUT SUMMARY and COLUMNS(...) (projecting only non-decimal columns) work around it. Appears fixed on main.
Environment
Reported on: MatrixOne Cloud free tier, 8.0.30-MatrixOne-v3.0.11
Retested on: local Docker matrixorigin/matrixonemain branch build, Git commit 0bfda60 (built 2026-05-30), version string 8.0.30-MatrixOne-v
Test case
CREATEDATABASEdtest; USE dtest;
CREATETABLEt_dec(id INTPRIMARY KEY, name VARCHAR(20), price DECIMAL(10,2));
INSERT INTO t_dec VALUES (1,'A',10.00),(2,'B',20.00),(3,'C',30.00);
DATA BRANCH CREATE TABLE t_dec_br FROM t_dec;
UPDATE t_dec_br SET price=15.00WHERE id=1;
INSERT INTO t_dec_br VALUES (4,'D',40.00);
-- (1) full-row DIFF over a table with a DECIMAL column
DATA BRANCH DIFF t_dec_br AGAINST t_dec; -- v3.0.11: FAILS-- (2) summary works
DATA BRANCH DIFF t_dec_br AGAINST t_dec OUTPUT SUMMARY; -- works-- (3) projecting only non-decimal columns works
DATA BRANCH DIFF t_dec_br AGAINST t_dec COLUMNS (name); -- works
Actual result
v3.0.11 (Cloud) — statement (1) fails:
ERROR 20101 (HY000): internal error: unsupported mysql type 0
(MySQL type 0 = MYSQL_TYPE_DECIMAL; the same happens for tables with a VECF32/vector column.)
Activity
to 3.0: Fix data branch result conversion on 3.0-dev (#24876)
Fix data branch decimal results on main (#24894)
gouhongshen commentedon Jul 10, 2026
修复了
Ariznawlll commentedon Jul 13, 2026
已在最新
main上完成验证,并补充 motr 回归测试。验证环境
main@52afd25fa63a3cb6037b7bf8ff0bf1328c4793ecissue_24847_data_branch_decimal_diff测试过程
DECIMAL(10,2)列的源表,数据包含正数、负数和 NULL。DATA BRANCH CREATE TABLE创建分支表。DATA BRANCH DIFF,检查每一行的 flag、主键和 DECIMAL 值。DATA BRANCH DIFF ... OUTPUT SUMMARY,检查 INSERTED、DELETED、UPDATED 数量。验证结果
15.00、40.00、-99.99等 DECIMAL 值均能正确序列化,没有再出现unsupported mysql type 0。Fix data branch decimal results on main (matrixorigin#24894)
Fix data branch decimal results on main (matrixorigin#24894)
Fix data branch decimal results on main (matrixorigin#24894)