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]: UNNEST rejects prepared JSON text placeholders as TEXT #29307
prepare p_plain from'select u.seq,u.path,u.value from unnest(?,?,?) u order by u.seq';
set @j='{"a":[1,null,3]}',@p='$.a',@o=false;
execute p_plain using @j,@p,@o;
实际结果:
ERROR 20301 (HY000): invalid input: unnest: first argument must be json or string, but got TEXT
对照
字面量调用:
selectu.seq,u.path,u.valuefrom unnest('{"a":[1,null,3]}','$.a',false) u order byu.seq;
显式转换的 prepared 调用:
prepare p_cast from'select u.seq,u.path,u.value from unnest(cast(? as varchar),cast(? as varchar),cast(? as bool)) u order by u.seq';
execute p_cast using @j,@p,@o;
两种对照均返回:
0 $.a[0] 1
1 $.a[1] null
2 $.a[2] 3
未显式转换的调用重复 3 次均返回相同 TEXT 类型错误;显式转换的对照重复 3 次均返回相同三行。错误后同一会话仍可继续执行普通查询。
Activity
fix: preserve prepared table-function domains through consumers and C…
Ariznawlll commentedon Sep 27, 2026
测试版本
main5be6cd90b501da225be591ffffe6000bf01f515e原问题验证
在上述最新 main 上按 issue 原始复现步骤执行,并独立重复 3 次;3/3 均满足修复后的预期。当前 main 已包含修复提交
5d80e0bc0348c31325c9a54488561c567076abb0。Happy Path 覆盖
Unhappy Path 覆盖
白盒验证
确认修复提交
5d80e0bc0348c31325c9a54488561c567076abb0是当前 main 的祖先,并核对对应 MatrixOne BVT/实现路径;本次另以公开 SQL 协议执行黑盒验收。回归测试
已加入 MOTR PR #204 的
issue_29306_29307_29308_29310_table_functions.test,MOTR 提交2b4462f2;本地基线比对连续 3 次通过。测试证据
5be6cd90b501da225be591ffffe6000bf01f515e测试结论
测试通过。