Repository navigation
fix(csvparser): preserve physical record lines after skipped input - #30325
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? |
fdf5a8e to
2a6d767
Compare
|
本轮维护更新:rebase 到 main 仅 rebase。原 CI 的 CDC DebugUpdateCNLabel/HAKeeper RPC 超时未建立与 CSV 修改的因果关系,未改动 CDC。 本地验证:受影响路径的普通 UT、单轮 race 和完整变更 Go 包范围的增量 SCA 均通过。未运行整套 CI/BVT、GPU 或性能负载;不将历史作者记录标作本轮新运行。 变更保留检查覆盖完整原 PR 与 main 的集成结果;仅保留本轮明确说明的维护增量。新提交的 GitHub CI 结果待运行,原 CI 中未定位或未归因的失败仍需单独跟踪。 |
2a6d767 to
78d08ca
Compare
|
已 rebase 到 main 本机 Go 1.27.1 / Darwin arm64 验证:
实际 gpt-6.1-sol / xhigh 设计与终审通过,session |
|
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-xupeng · review
Commit: 78d08ca8d5c200607b070e762f13349569477671
Assessment: approve
Reviewed the complete five-file delta and parser/external-reader ownership chain. The two assignments correctly advance record-start metadata after discarded input without changing parsing, newline accounting or multiline-record semantics. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a14d34-4e51-79a3-a62d-6c9c16279dc8 · slot 0 · generation 0
Validation:
-
Reviewed coverage for combined skips, quoted records, CRLF, EOF, small buffers, reset and tolerated conversion errors. Existing SQL data/count assertions remain intact.
-
Reused frozen exact-head successes for Ubuntu unit tests, Linux arm64 static analysis and both multi-CN BVT jobs; inspected repository selection paths for the affected packages and load_data case.
-
Local source/evidence audit passed: exact head and merge-base, clean checkout, complete delta inventory, whitespace and independent fixture/golden consistency. Receipt: attempt-3/checks/1792369248954496413-3.json; retained source-evidence-audit.log, source-evidence-audit.json and review-notes.json under /home/xupeng/.local/state/mo-bot/jobs/139148d88edd4484a8fd2edd.
-
Earlier attempts contained no completed validation or assessment to reuse.
Limitations:
-
No local Go or BVT rerun; execution evidence was reused from the frozen CI record. Raw CI and author execution logs were not supplied.
-
Related issue #30318 remains open for reporter confirmation, as requested by the PR.
Merge Queue Status
This pull request spent 52 minutes 28 seconds in the queue, including 51 minutes 38 seconds running CI. Required conditions to merge
|
…7151819d6f08b71545a93f302382812c7ed7f29
What type of PR is this?
Which issue(s) this PR fixes:
Related to #30318
What this PR does / why we need it:
__mo_file_linecan point to a skipped line when COMMENT or LINES STARTING BY discards input before a CSV record. For#h,a,1,#c,b,2with COMMENT#, report physical lines 2 and 4 instead of 1 and 3.Advance the candidate record-start line after each discarded comment or nonmatching STARTING BY line. Keep existing byte/newline accounting and matching lookahead rewind so multiline records retain their first physical line. This adds one scalar assignment per discarded line, with no extra allocation or scan.
Reuse existing parser/external fixtures for combined skips, multiline records, CRLF, small buffers, EOF, Reset and tolerated conversion errors. Extend the existing six-line COMMENT BVT fixture with physical-line metadata and STARTING BY coverage while retaining data/count checks.
Validation: on Go 1.27.1 / macOS arm64, full csvparser and external package UTs passed in normal and race modes (
-count=1); configured incremental SCA passed with 0 lint issues; the public-SQL probe passed. Rebased onto main2508ce7029b03with exact-tree preservation checked against an independent merge.The refreshed public-SQL probe uses the existing six-line CSV through the real MySQL frontend, checks rows/counts/physical-line metadata for default, COMMENT and STARTING BY scans, and verifies database teardown across two runs on the same isolated instance. The author's earlier exact mo-tester BVT runs remain historical evidence; they were not rerun in this maintenance update.
Earlier CI failed checkpoint and CN-scale-down tests; no causal link to this CSV delta has been established. Fresh remote CI remains pending. Keep #30318 open after merge for the reporter to verify.