Repository navigation
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: "interrupted" |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: dd6ce76d6a3246fdd941d8d6fad2caf610b3da38
Assessment: approve
Reviewed the complete 17-file delta and affected callers. The design restores JSON null/text separation in the shared reader, removes obsolete sentinel restrictions, and rejects invalid UTF-8 through the existing export conversion and cleanup owners. No actionable defects remain. The added UTF-8 scan is confined to JSONLine text export; ordinary SELECT/DML/DDL paths gain no new work.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Verified the frozen head, clean source, complete patch, changed-file hashes, formatting and whitespace checks.
-
Isolation preflight passed. Rejected incompatible retained libmo artifacts and successfully rebuilt current native sources through the repository Makefile.
-
All 30 selected test roots passed across frontend, external, externalwrite and embed. Coverage includes object/array null handling, explicit NULL mappings, binary wrappers, CSV controls, invalid UTF-8 rejection and allocation cleanup.
-
The real SQL integration test passed byte-exact round-trips, VARCHAR/DATALINK error propagation and subsequent successful exports on the same connection.
-
The conversion-error pipe lifecycle test passed race calibration and 100 repetitions under -race.
-
Reused frozen successful CI build, unit, static-analysis and multi-CN BVT check metadata. Local commands, source fingerprints, exit receipts and logs were reconciled in /home/xupeng/.local/state/mo-bot/jobs/825e670560706f64cd27ad3c/attempt-1/review-evidence.json.
Limitations:
-
Linked issue bodies were not included; their behavioral contracts were assessed from the frozen PR description and regression cases.
-
CI evidence contains check metadata, without per-case logs. No throughput benchmark was run; the additional text scan's cost was assessed structurally.
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #30704
Related to #30705
What this PR does / why we need it
JSONLINE OUTFILE → LOAD could reinterpret the literal text
\Nas SQL NULL, and JSONLINE OUTFILE could silently replace invalid UTF-8 bytes with U+FFFD. The JSONLINE reader now distinguishes a JSON null token from a string value. OUTFILE rejects invalid UTF-8 for CHAR, VARCHAR, TEXT, and DATALINK before JSON serialization can silently alter the bytes.A binary-origin DATALINK URL-path counterexample confirms the boundary: raw
FFbytes remain stored, but the old JSON marshaler emittedEF BF BDand returned success. The corrected path returns an explicit JSONLINE invalid-UTF-8 error; a valid DATALINK URL still exports as its ordinary JSON string. No global DATALINK storage/cast validation, CSV behavior, binary wrapper semantics, or upstream #30741 pipe lifecycle is changed.The regression coverage includes literal
\Nversus true NULL, object/array JSONLINE, CSV controls, invalid UTF-8 VARCHAR and DATALINK values, exact DATALINK storage bytes, no replacement-text export, and same-session recovery with a valid URL.Validation
Exact published candidate:
dd6ce76d6a3246fdd941d8d6fad2caf610b3da38../.agents/skills/mo-dev/scripts/mo-cgo-test -run '^TestVectorValueToJSONRejectsInvalidUTF8Text$' -count=1 -v ./pkg/frontend../.agents/skills/mo-dev/scripts/mo-cgo-test -run '^TestJSONLineOutfileLoadPreservesTextAndRejectsInvalidUTF8$' -count=1 -v -timeout 180s ./pkg/embed. It verifies raw stored bytes, explicit malformed-row error, no U+FFFD output, a same-connection query after the error, and exact valid-URL JSON bytes../.agents/skills/mo-dev/scripts/mo-cgo-test -p=1 -count=1 -timeout 300s ./pkg/frontend../.agents/skills/mo-dev/scripts/mo-cgo-test -p=1 -count=1 -timeout 10m ./pkg/embed. An earlier run with an explicit 5m total-package budget timed out asTestSQLFileAccessPeerPersistencehad just started; no assertion failure was reported. The longer run passed. The final named embedded regression was rerun after the subsequent test-onlyRowscleanup adjustment and passed../pkg/frontend ./pkg/embed— PASS; molint/vet completed and pinned golangci-lint v2.14.0 reported 0 issues.gofmtandgit diff --check— PASS.The standalone service build and BVT service binary predate the DATALINK production guard and are not claimed as exact-dd6ce binary evidence. This narrow delta was validated with the current CGo package builds and the exact embedded regression. No benchmark was run, so there is no benchmark-based performance claim.
CI results
All currently applicable CI has completed for the actual published head
dd6ce76d6a3246fdd941d8d6fad2caf610b3da38:Iceberg E2E Localwas skipped because the workflow currently setsif: false; this is not counted as a test pass.Other MatrixOne ALL CI jobs skipped by workflow configuration are reported as skipped, not passed. The earlier
ff321CI failure is superseded and is not counted for this head.Merge hold: DO NOT MERGE. This task authorizes publication and CI monitoring, not merging. Keep #30704 and #30705 open; the references above are intentionally non-closing.