Repository navigation
fix(sql): support UTF-8 charset declarations in JSON_TABLE - #31284
Conversation
|
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: df78fa648e2df7b834f5cd83d6796892bd23f22e
Assessment: approve
Reviewed the complete eight-file delta and affected consumers. Charset admission belongs in the existing JSON_TABLE binder and correctly precedes DEFAULT conversion, with consistent output and execution metadata. Existing charset and formatting helpers are reused without adding per-row work. No actionable defects or unresolved discussion concerns remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Reviewed parsing/formatting, aliases, invalid declarations, empty-input admission, nested/EXISTS columns, Unicode widths, session independence and correlated/prepared consumers.
-
Independent parser regeneration was conflict-free and byte-identical; parser-generation.log matches successful receipt checks/1793091996125554300-4.json.
-
Frozen exact-head CI records successful UT, SCA, coverage and both BVT groups. The author additionally reports parser/tree/planner passes and two focused 96/96 BVT runs.
-
Saved discussion-assessment.json covering both nonempty discussion entries; both are informational notices.
-
Reconciled commands, source fingerprints, exit receipts and retained logs in validation-audit.json. Final audit passed; source remained unchanged.
Limitations:
-
No local Go product tests ran: native prerequisites were absent and the repository owner rejected incompatible primary-worktree artifacts. This is an environment limitation, not a product-test failure.
-
CI raw logs and author execution receipts were not supplied; those results remain attributed evidence. The standalone linked-issue body was absent; review used the concrete contract and consumer query documented in the PR.
❌ Left the queue ·
|
| 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 |
Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).
- Requeue this pull request
Times in UTC · dashboard · how the merge queue works
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #29914
What this PR does / why we need it:
Allow
CHARACTER SET utf8mb4on JSON_TABLE character columns, unblocking the correlatedJSON_KEYS(checkpoint, '$.channel_versions')query used by the LangGraph MySQL checkpoint saver.utf8/utf8mb3aliases. Other domains, includingbinary, remain explicitly unsupported rather than silently changing semantics.Validation on macOS arm64 with Go 1.27.1:
table_func_json_table.sqlpassed twice on the same isolated service: 96/96 statements each, with database/stage cleanup verified.