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 cannot materialize VECUINT8 values #26136
DATA BRANCH cannot materialize a VECUINT8 value. The row extraction path produces the value as a display string, while the Data Branch value formatter assumes a []uint8 value.
Reproduction
This was reproduced three times on origin/main at 3f3cdcdda64fddb93b6668a301ff38d41e73fb76 with a focused white-box test:
Build a T_array_uint8 vector containing [1, 2, 3].
Pass the cell through extractDataBranchSQLRowValue.
Pass the extracted row value and its original type to formatValIntoString.
The formatter terminates at the T_array_uint8 branch because the extracted value is a string, not []uint8.
Expected behavior
The Data Branch row-materialization path should emit a valid SQL literal for VECUINT8, consistent with the other narrow vector types, so a branch operation can apply the row successfully.
Actual behavior
The value-shape mismatch stops formatting before the row can be applied.
The dedicated frontend extraction test already documents that VECUINT8 is represented as a display string for row-oriented consumers, while the newly added formatter branch asserts []uint8.
PR #26148 merged as f9c14192a035a31731622df8c1076b77d31121bb (reviewed head 210d1de0971bd5c8f4eda7b0f06b27a853a5c1a4). The exact-head regressions cover raw VECUINT8 materialization and const-NULL safety; required CI completed sufficiently for merge.
QA handoff on main f6dab28046d70412cec132f0068840896852101c:
Create DATA BRANCH copies containing ordinary, empty, NULL, and repeated const-NULL VECUINT8 values.
Verify multiple logical rows, including a nonzero row index, and read the destination data back.
Verify no panic and no string/display-format corruption.
Pass: all values preserve source semantics and NULLs remain NULL. Fail: panic, malformed SQL, wrong bytes, or NULL/empty conflation.
结果:该 case 20/20 条 SQL/断言通过;本轮 Data Branch 全集 13/13 case、280/280 条 SQL/断言通过。
白盒验证:
go test ./pkg/frontend \
-run '^(TestFormatValIntoString_DataBranchSpecialTypes|TestExtractDataBranchSQLRowValueUint8Array)$' \
-count=1
ok github.com/matrixorigin/matrixone/pkg/frontend
Unhappy path / 类型边界:
VECUINT8 同时覆盖 0、255,VECINT8 覆盖 -128、127。
在非首行位置覆盖 NULL→value、value→NULL,避免仅首行或非 NULL 数据通过。
同一 diff 中混合 INSERT、UPDATE、DELETE,并在 PICK/MERGE 后检查每个 vector family 的精确文本。
Activity
fix: materialize vecuint8 in data branch (#26148)
VioletQwQ-0 commentedon Jul 29, 2026
PR #26148 merged as
f9c14192a035a31731622df8c1076b77d31121bb(reviewed head210d1de0971bd5c8f4eda7b0f06b27a853a5c1a4). The exact-head regressions cover raw VECUINT8 materialization and const-NULL safety; required CI completed sufficiently for merge.QA handoff on main
f6dab28046d70412cec132f0068840896852101c:Pass: all values preserve source semantics and NULLs remain NULL. Fail: panic, malformed SQL, wrong bytes, or NULL/empty conflation.
Ariznawlll commentedon Jul 29, 2026
已在最新
main分支完成验证。测试版本:
52ea9f874f492c368a20efef16b46ab8ced2de37测试拓扑:Proxy + 2 CN
测试过程:
VECUINT8提取、格式化及 const-NULL 专项测试,普通模式和-race模式各连续 3 轮。VECF32VECF64VECBF16VECF16VECINT8VECUINT8测试结果:
VECUINT8普通值、NULL 和多逻辑行均能正确物化,没有 panic。-race专项测试均连续 3 轮通过。结论:该问题在上述最新 main commit 上验证通过。
Ariznawlll commentedon Jul 30, 2026
已在
main@0ebba1c0c96bbcf0ff4091236e10df7b97e24a0c补充完成黑盒和白盒验证。黑盒验证:
VECUINT8的0/255和VECINT8的-128/127边界。结果:该 case
20/20条 SQL/断言通过;本轮 Data Branch 全集13/13case、280/280条 SQL/断言通过。白盒验证:
Unhappy path / 类型边界:
0、255,VECINT8 覆盖-128、127。结论:VECUINT8 的行提取和 SQL literal materialization 与其他 vector 类型一致,NULL 和边界变化均验证通过;黑盒回归已加入 motr#69。
Ariznawlll commentedon Jul 30, 2026
Unhappy Path / 类型边界专项验证
测试版本:
main@0ebba1c0c96bbcf0ff4091236e10df7b97e24a0c该问题的边界重点是 value shape、NULL 和数值极值:
0、255。-128、127。结果:没有出现 VECUINT8 string/
[]uint8类型断言错误、NULL 错位或行 materialization 错位。专项用例20/20条 SQL/断言通过,相关 formatter/extractor Go 测试返回ok。测试结论
测试通过。
fix: materialize vecuint8 in data branch (matrixorigin#26148)
fix: materialize vecuint8 in data branch (matrixorigin#26148)
fix: materialize vecuint8 in data branch (matrixorigin#26148)