Repository navigation
fix(parser): support SERIAL columns and bare table grants - #32196
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? |
bdd0818 to
4311fe8
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: 4311fe84d50a509b1b202e0eebf530289c4202b6
Assessment: approve
The grammar reuses canonical DDL and table-privilege ASTs while preserving SERIAL’s existing identifier and function roles. Generation and parser regressions pass; no actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed all 11 changed paths, both discussion entries, linked issues and relevant DDL/authorization consumers; source unchanged.
-
Canonical parser regeneration byte-matched. All 796 existing token constants and 2,049 existing action bodies were preserved, with four intended additions.
-
Both owning parser packages passed with Go 1.27.1, the assigned executor and a frozen-input repository jemalloc build. All 16 added top-level tests executed.
-
Audited 28 SERIAL and 56 bare-grant SQL/result statements, state/error oracles and the two intended legacy result changes.
-
Frozen-head CI: 13 successful, 14 skipped and 2 neutral checks, including build, UT, SCA/coverage and PROXY/PESSIMISTIC BVT. Receipts and logs reconciled in validation-ledger.json.
Limitations:
- No fresh local SQL/BVT or planner/explain runs. Author service evidence retains its stated older-base binary identity; raw author logs were not supplied.
🚫 Left the queue · pull request dequeued1 h 16 min in the queue, with no time running CI. So far
Reason Pull request #32196 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.
To get back in the queue
Merge conditions not met when it left the queue
Tick the box to put this pull request back in the merge queue (same as
2 merge conditions met
Times in UTC · dashboard · how the merge queue works |
|
|
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #31748
Fixes #31804
What this PR does / why we need it:
Accept SERIAL in MySQL column definitions as BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE, including ALTER TABLE ADD COLUMN. Keep its non-reserved identifier behavior and existing CAST, CONVERT and sequence-type boundaries. Preserve the existing unquoted serial(...) function-call AST after introducing the SERIAL token, including nested serial_extract, aggregates and generated composite-index SQL.
Allow GRANT and REVOKE to omit TABLE by constructing the same table-privilege AST as the explicit form. Preserve privilege levels, options and authorization denials. Update two legacy expected results that formerly rejected this now-supported syntax; account-privilege denial remains asserted. Role grants, proxy grants and WITH ADMIN OPTION are outside this change.
Validation:
Remote CI and review remain subject to the published HEAD. No multi-CN or deployment validation is claimed.