Skip to content

Correct LOAD DATA option diagnostics - #31742

Merged
mergify[bot] merged 7 commits into
matrixorigin:mainfrom
iamlinjunhong:codex/loom/develop/7f1c723f9942c0eeb586b36d7a2200a80daef27dce9b05100106fc86c214eaf3
Oct 29, 2026
Merged

mergify[bot] merged 7 commits into
matrixorigin:mainfrom
iamlinjunhong:codex/loom/develop/7f1c723f9942c0eeb586b36d7a2200a80daef27dce9b05100106fc86c214eaf3

Conversation

@iamlinjunhong

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Related issue(s)

What this PR does / why we need it:

Invalid LOAD DATA PARALLEL and STRICT values reported each other's option name. Correct the grammar diagnostics and regenerate the parser, so each rejected value identifies the corresponding option. Accepted values, case-insensitive handling, and defaults remain unchanged.

Parser tests cover invalid and empty values, adjacent options, valid values and defaults. A SQL BVT checks both diagnostics and a subsequent query on the same connection.

Validation on the reviewed changes:

  • Generated the parser using the repository Makefile; focused parser tests, the mysql and upper-level parser packages, vet, incremental lint, and formatting checks passed.
  • The new SQL BVT passed twice (3/3 each); the load_data directory passed with 1645 successful, 0 failed, and 5 existing ignored cases.
  • CI has yet to run.

The change replaces static error text and has no expected material performance impact. Clients asserting the previous incorrect messages may need to update their expectations. Please have the issue reporter verify the behavior after merge.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH

XuPeng-SH commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: a102ae7e983f63dbf1dfce5dc896aa64ae087fbe

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: a102ae7e983f63dbf1dfce5dc896aa64ae087fbe

Assessment: approve

Both LOAD DATA diagnostics now identify the correct option. Grammar and generated parser agree; accepted values and defaults remain unchanged. No actionable findings.

Model: gpt-6-astra / xhigh

Session: 01a1869d-999c-7481-b340-ae4a63e8cee4 · slot 1 · generation 2

Validation:

  • Reviewed the complete delta, parser/frontend error paths, regression oracles, linked issue and all discussion entries.

  • Static validation passed: frozen source/patch identity, clean worktree, whitespace, literal-only production changes, SQL/result pairing and discussion coverage. Receipt: checks/1793278797862754900-2.json; output: static-validation.log.

  • Reused supplied successful head-matching build, UT, coverage, SCA and BVT CI conclusions.

Limitations:

  • No local Go tests or service BVT were run. Supplied CI evidence contains terminal statuses but no raw execution logs; author-reported test counts were not independently reproduced.

@mergify mergify Bot added the queued label Oct 29, 2026
@mergify

mergify Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

❌ Left the queue · checks failed

2 h 33 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Thu 29 Oct, 13:01 · rule main · triggered by rule Automatic queue on approval for main
  • ❌ Checks failed · in place
  • 🚫 Left the queue 15:34 · f4d37f4

The failure is in this pull request. It failed tested alone on top of main.

Reason

The merge conditions cannot be satisfied due to failing checks

  • CI Required

To get back in the queue

  • Push a fix: the pull request is queued again once its queue conditions match.
  • If the failure is a flake, comment @mergifyio queue to queue it again as it is.
Merge conditions: 2 of 3 met

This pull request

Condition Required by
✅ #review-threads-unresolved = 0 GitHub branch protection
✅ github-review-approved GitHub branch protection

The batch, tested in place

Condition Required by
❌ any of: check-neutral = CI Required, check-skipped = CI Required, check-success = CI Required GitHub branch protection

Requeued — the merge queue status continues in this comment ↓.

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Oct 29, 2026
@mergify

mergify Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

❌ Left the queue · checks failed

1 h 12 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Thu 29 Oct, 17:58 · rule main · triggered by rule Automatic queue on approval for main
  • ❌ Checks failed · in place
  • 🚫 Left the queue 19:10 · 8ad7589

The failure is in this pull request. It failed tested alone on top of main.

Reason

The merge conditions cannot be satisfied due to failing checks

  • CI Required

To get back in the queue

  • Push a fix: the pull request is queued again once its queue conditions match.
  • If the failure is a flake, comment @mergifyio queue to queue it again as it is.
Merge conditions: 2 of 3 met

This pull request

Condition Required by
✅ #review-threads-unresolved = 0 GitHub branch protection
✅ github-review-approved GitHub branch protection

The batch, tested in place

Condition Required by
❌ any of: check-neutral = CI Required, check-skipped = CI Required, check-success = CI Required GitHub branch protection

Requeued — the merge queue status continues in this comment ↓.

Times in UTC · dashboard · how the merge queue works

@mergify

mergify Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into main as 55e1fca at 22:22 UTC

1 h 25 min in the queue, 1 h 3 min of it CI.

So far

  • ✅ Entered the queue Thu 29 Oct, 20:57 · rule main · triggered by rule Automatic queue on approval for main
  • ✅ Passed · in place
  • ✅ Merged 22:22 · 55e1fca · squash
Merge conditions: 3 of 3 met

This pull request

Condition Required by
✅ #review-threads-unresolved = 0 GitHub branch protection
✅ github-review-approved GitHub branch protection

The batch, tested in place

Condition Required by
✅ any of: check-success = CI Required, check-neutral = CI Required, check-skipped = CI Required GitHub branch protection

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot removed the dequeued label Oct 29, 2026

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants