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
MatrixOne main commit 3a1e42b4308bd0098e055ddb9360a07f85201d9c,隔离本地单 TN、双 CN,2026-10-21。
最小复现
使用可写的本地导出路径替换 /tmp/rows.jsonl。
CREATETABLEsrc(id INTPRIMARY KEY, s VARCHAR(40));
CREATETABLEdstLIKE src;
INSERT INTO src VALUES
(1,CAST(x'5C4E'ASCHAR)), -- 字节 5C 4E,即反斜杠加 N
(2,NULL),
(3,'plain');
SELECT id,HEX(s),s IS NULLFROM src ORDER BY id;
-- 1 5C4E 0-- 2 NULL 1-- 3 706C61696E 0SELECT id,s FROM src ORDER BY id
INTO OUTFILE '/tmp/rows.jsonl' FORMAT 'jsonline';
LOAD DATA INFILE
{'filepath'='/tmp/rows.jsonl','format'='jsonline','jsondata'='object'}
INTO TABLE dst;
SELECT id,HEX(s),s IS NULLFROM dst ORDER BY id;
-- 1 NULL 1 <- 错误:5C4E 被静默变为 NULL-- 2 NULL 1-- 3 706C61696E 0
The merged implementation includes the JSONLINE reader change that distinguishes a JSON null token from the literal string \\N. The embedded regression named in the PR validates literal \\N versus true NULL, and the submitted exact-candidate evidence reports that test passing on dd6ce76d6a3246fdd941d8d6fad2caf610b3da38. That tested commit is an ancestor of the merged head; a source diff of the affected reader/export/embed paths between those revisions is empty.
This is documented reviewer/test evidence, not a test run I performed in this environment (Go and a runnable MatrixOne service are unavailable). The merged head has no visible combined status/workflow runs, so no current-head CI pass is claimed. The defect is fixed and targeted regression evidence is available; leaving the issue open for tester confirmation.
Activity
fix: preserve JSONLine text in OUTFILE round-trips (#30797)
XuPeng-SH commentedon Oct 22, 2026
Verified-fix follow-up for PR #30797, merged 2026-10-22 (head
7a196af243e16e93c2acbec7eb17b04e1db133de; merge commit1daa5e459bf5f58a9b21218a1082cb1a5bdf5562).The merged implementation includes the JSONLINE reader change that distinguishes a JSON null token from the literal string
\\N. The embedded regression named in the PR validates literal\\Nversus true NULL, and the submitted exact-candidate evidence reports that test passing ondd6ce76d6a3246fdd941d8d6fad2caf610b3da38. That tested commit is an ancestor of the merged head; a source diff of the affected reader/export/embed paths between those revisions is empty.This is documented reviewer/test evidence, not a test run I performed in this environment (Go and a runnable MatrixOne service are unavailable). The merged head has no visible combined status/workflow runs, so no current-head CI pass is claimed. The defect is fixed and targeted regression evidence is available; leaving the issue open for tester confirmation.
Ariznawlll commentedon Oct 24, 2026
测试版本
main,commit6a9a4e22f94205846b36fcbd7396747c219095e7。PR #30797 merge commit1daa5e459bf5f58a9b21218a1082cb1a5bdf5562已核实为该 SHA 的祖先;当前源码的 JSONLINE loader 已区分 JSON null 与字符串\\N。vcs.revision与上述 SHA 一致、vcs.modified=false,SHA-256c93327196edb7f6d4b403e687f22327cad46ff145531c9ee510ee6e92af8c056,MySQL 协议直连。原问题验证
每轮新建
src/dst,用原始字节x'5C4E'表达两个字符\\N,经SELECT ... INTO OUTFILE FORMAT 'jsonline'和LOAD DATA ... jsondata='object'往返。原先变成 NULL 的 id=1 现在 3/3 保持HEX(s)=5C4E、s IS NULL=0;真正 NULL 的 id=2 保持s IS NULL=1。四行整体COUNT(*)=4, COUNT(s)=3,源/目标逐行差异数 0。Happy Path 覆盖
同时覆盖普通字符串
plain(706C61696E) 与双反斜杠x'5C5C4E',导出后导入仍为原始字节;三轮使用独立数据库及导出文件。Unhappy Path 覆盖
核心歧义边界是真 NULL 与合法
\\N字符串,逐行HEX和 NULL 标志同时断言;不接受行数不变但值被改写。每轮导出文件和数据库均清理,无重跑污染。白盒验证
以实际服务的 OUTFILE/LOAD 产品路径独立验收;该结果也解决了此前仅凭 PR 合入状态不能证明
main行为的疑问。未修改 MO 产品代码;本轮未另跑 Go UT/race。回归测试
已在用户指定的 MOTR #278 添加 SQL 场景 及 配对期望。定向
./motr --branch main --repeat 3 14_issue_regression.issue_30704_jsonline_literal_slash_n3/3;每轮 18 条语句。#278 当前 head 的离线检查 4/4 通过:Actions。未运行全量 MOTR suite 或 MatrixOne 全量 CI。测试证据
配对结果记录 id=1
5C4E/0、id=2<NULL>/1、id=3706C61696E/0、id=45C5C4E/0,往返前后完全一致;差异数0。手工原场景与 MOTR 回归均各 3/3。测试结论
测试通过。