Repository navigation
fix(parser): normalize inline load format names - #30438
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? |
ccbc516 to
0cf9879
Compare
|
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: 0cf9879e12d8b55e10cc72bbbb7cac48d8cfbc5e
Assessment: approve
Reviewed the complete four-file delta and affected callers. Normalizing inline format names at AST construction restores the existing canonical-format contract without duplicating validation or reader dispatch. Payloads, invalid-format rejection and Arrow restrictions remain intact. Tests cover parser boundaries, actual MySQL-protocol behavior and cleanup. No actionable findings; runtime cost is limited to the format-name string.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Reused frozen exact-head successful Ubuntu UT, UT Coverage, arm64 SCA, proxy BVT and pessimistic multi-CN BVT evidence.
-
Regenerated mysql_sql.go using Go 1.27.1 and repository goyacc; output matches the committed parser byte for byte. Receipt checks/1792188692473773958-4.json and generated-parser.log confirm exit 0.
-
Verified exact head/base, clean source, complete changed-file scope, gofmt and git diff --check. Receipt checks/1792188745486035796-20.json and final-audit.log confirm exit 0.
-
Retained evidence reconciliation and review notes under /home/xupeng/.local/state/mo-bot/jobs/571d916ea5e150961cf8200d/attempt-1/validation-audit.json and review-notes.json.
Limitations:
-
No local Go tests were rerun. Supplied CI evidence contains workflow results, without individual test logs; local_validation is empty and raw author-test receipts were unavailable.
-
Linked issue #30419's body was not supplied; review used the concrete reproduction and behavioral contract in the PR description.
Merge Queue Status
This pull request spent 1 hour 16 minutes 19 seconds in the queue, with no time running CI. ReasonPull request #30438 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Waiting for any of
All conditions
Tick the box to put this pull request back in the merge queue (same as
|
…873b63ec306d4c0cfd744501ca459fe5af79675
|
版本范围复核:main |
What type of PR is this?
Which issue(s) this PR fixes:
What this PR does / why we need it:
LOAD DATA INLINE FORMAT='CSV'currently fails with a misleading "not yet implemented" error, although the lowercase spelling works. JSONLINE spelling variants also take different validation paths.Canonicalize the inline format name when constructing the AST, before planner and reader dispatch, matching INFILE/S3 format handling. CSV and JSONLINE spelling variants now follow the existing lowercase behavior. Payloads and other options retain their values; unknown, empty, and padded names remain rejected, and INLINE Arrow retains its existing restriction. Regenerate the parser from the grammar.
Validation:
go vet, and configured incrementalgolangci-lintpass for the changed parser and embedded-test packages (0 issues).The added work is one format-name scan per parse, with no per-row or payload processing. Local checks passed; PR CI is pending.