Repository navigation
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? |
5205e49 to
fb5fa69
Compare
Add PREPARE/EXECUTE coverage for valid text, numeric and binary parameter rejection, SQL NULL, malformed JSON recovery, and statement reuse after a binary parameter. Assert independent teardown residue with information_schema after DROP TABLE.
Local MO returns Invalid JSON charset for CAST(... AS BINARY) parameters rather than the generic invalid JSON argument type error.
6a4fba0 to
2e9caab
Compare
|
Addressed both items from XuPeng-SH's review in
Also corrected the binary prepared error expectation to include Connector/J's Validation: protocol regression, focused JSON_DEPTH UT, matching native/service builds, go vet all, gofmt and diff whitespace checks passed. Local golangci-lint is BLOCKED_ENVIRONMENT (built with Go 1.24, target Go 1.26.4); fresh CI is pending. Ready status remains unchanged. Please re-review the current head. This does not claim CI completion or deployed QA acceptance. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review at exact head 9f651141db88995584c4e173c1f153be6f9427b6: APPROVE. The two prior blockers are closed: the real COM_STMT regression uses one connection and statement ID, asserts transmitted type-vector/cache reuse rather than assuming driver behavior, and exercises text → integer rejection → BLOB rejection/reuse → NULL with cached BLOB metadata → malformed JSON → valid recovery. The BVT repeats on one service instance and independently checks both test tables are absent after each run. I found no new correctness, cleanup, limit, or complexity issue in the iterative depth traversal or typed/text validation boundary. Focused unit/embed tests and the same-instance SQL BVT evidence are recorded in the PR description; exact-head required CI, SCA, coverage, PROXY and pessimistic BVT are green. Scope remains JSON_DEPTH only; it does not close the broader parent issue.
Merge Queue Status
This pull request spent 3 minutes 50 seconds in the queue, with no time running CI. ReasonPull request #28962 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
|
What type of PR is this?
Which issue(s) this PR fixes:
issue #28033 (JSON_DEPTH only; JSON_ARRAY_INSERT and JSON_SEARCH remain separate follow-ups)
What this PR does / why we need it:
Implements MySQL-compatible JSON_DEPTH for text and typed JSON, preserving SQL NULL versus JSON null, rejecting unsupported/binary and malformed inputs, enforcing the existing nesting limit, and using iterative traversal with bounded auxiliary space.
The review repair adds a permanent real COM_STMT regression on one connection and statement ID. It checks new and cached text/integer/BLOB types, NULL with cached BLOB metadata, repeated rejection, and malformed-text recovery to a different depth. The test verifies actual new-parameters-bound flags instead of assuming driver reuse. The SQL BVT covers user-variable category transitions, checks both created tables are removed, and includes the JDBC Data truncation prefix demonstrated by the failing CI report.
Validation
Candidate:
9f651141db88995584c4e173c1f153be6f9427b6(test-only review repair on2e9caab3a5bbf9ce501596430a4787aff9e8473a). Product/native sources are identical to the service built and tested for this repair.test/distributed/cases/function/func_json_depth.sqlnormal mo-tester comparison twice on the same local single-CN instance: 42/42 each, both exit 0, no restart or intervening cleanup.Dependencies and acceptance
No public API or wire-format change is introduced by the review repair. This PR covers only JSON_DEPTH and must not close the parent issue. Preserve Ready status; it does not imply CI, reviewer, deployment, or QA acceptance.
QA required: yes — deployed SQL text/typed inputs, NULL, limits, errors and prepared reuse remain product acceptance scope. Two same-instance canonical BVT runs and independent teardown evidence are tracked separately from CI and reviewer approval.