Repository navigation
Conversation
1265178 to
2040f69
Compare
2040f69 to
2ff8b87
Compare
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review of exact head 714bf4d14f8d39017f0e6d5c28845fda98a70593 against exact main base de4e4aaa54d518189b5b1716f8979e4d8f5d77b1.
Requesting changes for one newly reproduced wrong-result regression: binary constructor values and MEMBER OF's left operand now use different opaque subtypes. Details and repair guidance are inline.
Previous findings are closed: BIT object keys retain the legacy spelling, binary constructor values use the service runtime's admitted protocol, and the resolved JSON_UNQUOTE fixture retains main's typed headers/plain-text cases alongside this PR's temporal expectations.
I inspected the complete integrated diff and the affected conversion, folded-constant, comparison and modifier consumers, including SQL NULL/masked rows, geometry errors, temporal scale/timezone, YEAR, prepared provenance, protocol rejection and binary subtype behavior. The shared converter is a sensible direction, but its consumers must agree on the value domain; checking constructor output alone misses this composition regression.
Validation actually executed on macOS/arm64 using controlled CGo paths and native artifacts whose tracked build inputs match this head:
- Full jsonvalue package: PASS (0.302s).
- Full colexec package: PASS (1.425s).
- Full function package plus the review-only roundtrip probe: only the new BINARY and VARBINARY probe assertions failed (14.038s); no other test failures were reported.
- The identical probe on the exact base: all BINARY/VARBINARY/BLOB cases PASS (0.780s). BLOB is also a passing control at the PR head.
- git diff --check: PASS.
- Live head CI reports UT, arm64 SCA, PROXY/PESSIMISTIC BVT and coverage success; these do not cover the demonstrated composition.
The probe feeds actual binary JSON output from jsonArray directly into jsonMemberOf, without a text roundtrip or manually constructed expected JSON domain. No local server/BVT, MySQL oracle, race run or performance benchmark is claimed. Source review found no additional new wait/hang or asymptotic growth issue; that is not a measured claim of zero performance impact.
aptend
left a comment
There was a problem hiding this comment.
Deep re-review completed at exact head 714bf4d14f8d39017f0e6d5c28845fda98a70593 against exact base de4e4aaa54d518189b5b1716f8979e4d8f5d77b1. I read every historical review, inline comment, author reply, and resolved/unresolved thread; range-diffed the rebased series against aptend's previously reviewed 4d3302b2... head; and reviewed the complete integrated diff and all four linked issues.
The prior findings are genuinely closed: constructor values use the admitted service protocol, BIT object keys retain their legacy spelling, and the JSON_UNQUOTE fixture conflict was reconciled with current main. Two blocking conversion-boundary problems remain:
-
[P1]
pkg/sql/plan/function/func_builtin_json_member_of.go:227-247still compares BINARY/VARBINARY in the legacy BLOB domain.BINARY,VARBINARY, andBLOBall take theIsMySQLString()branch. Even after line 239 restores the concrete OID,preparedJSONMemberOfScalarValuedelegates toPreparedJSONScalarValue, whose binary path produces legacyTpCodeOpaque(comparison subtype 252). The new constructor path inpkg/sql/jsonvalue/value.go:105-110produces MySQL subtypes 254 for BINARY and 15 for VARBINARY.CompareBinaryJSONcompares subtype before payload, so a value no longer matches the array constructed from itself.Concrete SQL trigger:
CREATE TABLE binary_member_repro (b BINARY(3), v VARBINARY(3)); INSERT INTO binary_member_repro VALUES (x'000102', x'000102'); SELECT b MEMBER OF (JSON_ARRAY(b)), v MEMBER OF (JSON_ARRAY(v)) FROM binary_member_repro;
I independently executed the corresponding production-function chain using the actual
jsonArrayresult as thejsonMemberOfRHS. Both BINARY and VARBINARY return 0 on this head; BLOB returns 1 as a control. The final commit only passes the admitted protocol into the non-stringelsebranch at line 262, which these types never reach, so it does not close this path. Align MEMBER OF scalar conversion with the constructor subtype contract and add column/folded/prepared BINARY, VARBINARY, BLOB, and BIT round trips, including the indexed large-array path. -
[P1]
pkg/sql/plan/function/func_builtin_json.go:2222-2231ignores concrete prepared binary metadata and bypasses admission. For the text transport used by a direct prepared argument,convertToAnychecks onlyPrepareParamKind. A binary parameter normally hasPrepareParamNone, so the function falls through tojsonvalue.FromVectorusing the physical TEXT type and never consultsGetPrepareParamType()orGetIsBinaryStringAt().A review-only reproducer modeled a COM_STMT_EXECUTE VARBINARY value with physical
T_text, bytesab,PrepareParamType=T_varbinary, and the binary-string flag. With runtime protocol 51,JSON_ARRAYsucceeds instead of returning the required version-52 admission error. With protocol 52, it returns["ab"]instead of["base64:type15:YWI="]. This can emit the wrong persistent representation during a rolling upgrade and loses the exact subtype even after admission. Resolve prepared concrete binary metadata before the generic text path, fail closed where required metadata such as BIT width is unavailable, and cover direct binary-protocol constructor arguments rather than onlyCAST(? AS ...).
Validation performed on this exact head:
- two temporary regression tests reproduced all failures above and were removed;
- full
pkg/sql/jsonvalue,pkg/sql/plan/function, andpkg/sql/colexectests passed; - the affected converter, constructor, MEMBER OF, and folded-binary tests passed with
-race -count=3; git diff --checkpassed;- exact-head GitHub UT, arm64 SCA, BVT, and coverage checks are green, but do not cover these compositions.
I found no additional confirmed concurrency, lifecycle, leak, or unbounded-growth blocker in this diff.
|
Implemented the current-head P1 review fix in
Exact-head validation on the pushed commit: Please re-review the binary representation alignment and the prepared metadata boundary. |
aptend
left a comment
There was a problem hiding this comment.
Deep re-review of exact head 6d5d81b5861c676d6fb4ee88bcb4df63eee98734 against exact base de4e4aaa54d518189b5b1716f8979e4d8f5d77b1: REQUEST_CHANGES.
I re-read the complete review, inline-comment, reply, issue-comment, and thread history; compared the full series; reviewed the complete integrated diff plus the sole new commit; and independently tested both prior counterexamples. The constructor-to-MEMBER OF mismatch is closed: FromBinary now gives BINARY/VARBINARY/BLOB consistent subtypes, MEMBER OF uses the admitted protocol, and the new column/NULL/nonmatch/BIT/large-array coverage passes. The direct prepared-constructor blocker is not closed.
P1 — Direct prepared binary constructor arguments still bypass concrete metadata and protocol admission
At pkg/sql/plan/function/func_builtin_json.go:2228-2242, convertToAny still checks only PrepareParamKind for a physical CHAR/VARCHAR/TEXT vector. A direct COM_STMT_EXECUTE VARBINARY parameter has physical T_text, PrepareParamKind=None, concrete PrepareParamType=T_varbinary, and its binary-string flag. This branch therefore falls through to jsonvalue.FromVector with the physical TEXT type; it never calls the new PreparedJSONScalarValue/FromBinary, never applies protocol-52 admission, and emits a JSON string rather than subtype 15.
I reproduced this exact vector shape on the current head. With runtime protocol 51, JSON_ARRAY(?) conversion succeeds instead of returning the required protocol-52 error. With runtime protocol 52, payload ab becomes ["ab"] rather than ["base64:type15:YWI="]. The temporary test was removed after reproduction.
This remains externally observable and can persist the wrong JSON representation during a rolling upgrade. The new prepared MEMBER OF unit case only applies prepared metadata to the left comparison operand after constructing the RHS from a statically typed vector; the SQL regression uses CAST(? AS BINARY(3)), so neither exercises a direct prepared constructor argument.
Resolve prepared concrete metadata before the generic text path in convertToAny (including the admitted protocol and the intended metadata-free binary-string fallback), and cover direct BINARY/VARBINARY/BLOB COM_STMT_EXECUTE arguments for JSON_ARRAY and the other constructor/modifier consumers of this helper. The pre-52 case must fail closed and the 52+ case must preserve the concrete subtype.
Validation on this exact head: full pkg/sql/jsonvalue, pkg/sql/plan/function, and pkg/sql/colexec tests pass; the new binary/MEMBER OF and constructor admission tests pass under -race -count=3; git diff --check passes. Exact-head CI was still running at submission time. I found no additional confirmed lifecycle, concurrency, or complexity blocker in the new delta.
|
Follow-up validation on The published
Evidence: the pre-fix Whole-diff semantic review: PENDING; the previous overall PASS is withdrawn (see evidence correction below). Local artifacts: Learning Decision: NO_CHANGE; subtype composition and authentic branch selection are covered by the existing R2/R4/R7 guidance. Evidence correction — 2026-09-08Evidence correction (2026-09-08): the whole-diff semantic PASS previously reported here is withdrawn. The manifest generator copied expected results into observed results and set PASS unconditionally; the validator checked declarations and coverage structure, not their truth. Individual executable results are separate evidence and are being checked against their exact content and test assertions. Overall semantic review is PENDING. This correction does not claim that all tests were invalid or that the code repair failed. Current-head CI, reviewer approval and applicable design/QA gates remain separate. |
aptend
left a comment
There was a problem hiding this comment.
Deep re-review of exact head bf41f8b019d905f2d2c430acae1152662a1d0f33 against exact base de4e4aaa54d518189b5b1716f8979e4d8f5d77b1: REQUEST_CHANGES.
This head adds only four test/evidence files on top of reviewed head 6d5d81b5861c676d6fb4ee88bcb4df63eee98734; the production implementation is unchanged. I reviewed the full incremental diff and re-ran the unresolved direct-prepared counterexample on this exact head. Both failures remain: protocol 51 succeeds rather than failing admission, and protocol 52 produces ["ab"] rather than VARBINARY subtype-15 ["base64:type15:YWI="].
The new frontend test passes, but its queries are CAST(?) MEMBER OF JSON_ARRAY(CAST(literal)): prepared metadata is consumed by the cast on the MEMBER OF left operand, while the constructor receives a statically typed literal. Likewise, the BVT's constructor argument is CAST(? AS BINARY), not a direct binary-protocol argument. These additions improve MEMBER OF evidence but do not exercise JSON_ARRAY(?) with physical TEXT plus PrepareParamType=T_binary/T_varbinary/T_blob, which is the still-broken path.
The blocking location and fix remain pkg/sql/plan/function/func_builtin_json.go:2228-2242: resolve concrete prepared metadata and the binary-string flag before the generic TEXT fallback, pass the admitted protocol into PreparedJSONScalarValue, and add direct uncast COM_STMT_EXECUTE constructor/modifier coverage. This matters for persistent representation and mixed-version admission, not only MEMBER OF.
Validation on this exact head: the newly added frontend test passes; the review-only direct-prepared test fails both protocol/subtype assertions and was removed; git diff --check passes. Full jsonvalue/function/colexec and focused race coverage passed on the immediately preceding production-identical head. No additional blocker was found in this test-only delta.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review of exact head bf41f8b against de4e4aa. Inspected all 20 changed files/hunks, including text-mode diffs of the binary-classified golden files, review history and the final evidence update. The static BINARY/VARBINARY constructor-to-MEMBER OF mismatch is fixed, but the direct prepared-constructor boundary remains broken.
[P1] Resolve prepared binary provenance before the constructor's generic TEXT fallback
Location: pkg/sql/plan/function/func_builtin_json.go:2232-2241 (convertToAny). This branch reads only GetPrepareParamKindAt. A non-NULL physical TEXT vector carrying PrepareParamNone and concrete PrepareParamType=T_varbinary plus its binary-string flag falls through to jsonvalue.FromVector, whose TEXT branch returns a Go string. Neither concrete metadata nor the binary flag reaches PreparedJSONScalarValue/FromBinary.
Deterministic counterexample: feed payload ab with that vector metadata to JSON_ARRAY's production conversion. At admitted protocol 51 it succeeds rather than failing the subtype-15 admission check; at 52 it creates ["ab"] instead of ["base64:type15:YWI="]. These exact-head outcomes were independently executed and recorded in aptend's review; I independently verified the branch/dataflow rather than claiming a new native test run. This is not an evidence-only objection: the implementation provably chooses the character-string domain.
The real parameter transport also matters: ParamExpressionExecutor.Eval (evalExpression.go:621-631) propagates the binary flag, kind and available concrete type; binary COM_STMT_EXECUTE BLOB domains set a binary-string sidecar in computation_wrapper.go. convertToAny ignores that sidecar too, including the metadata-free binary-string fallback explicitly retained by PreparedJSONScalarValue. JSON_OBJECT value arguments and JSON_SET values share this broken conversion, so wrong-domain JSON can be stored and later fail typed membership/comparison.
Please resolve prepared concrete type and row-level binary-string provenance before the generic text path, threading the admitted protocol through PreparedJSONScalarValue/FromBinary. Preserve the intentionally metadata-free legacy fallback; if constructor positions need concrete subtype information from frontend initialization, carry it through rather than assuming the kind encodes it. Add uncast direct binary EXECUTE arguments to JSON_ARRAY(?), JSON_OBJECT('k', ?), and JSON_SET('{}', '$.k', ?), with protocol 51/52 controls, NULL/masks and rebinding. The new frontend fixture casts the left operand of MEMBER OF and constructs its RHS from a typed literal; the BVT casts constructor parameters. Neither exercises the failing direct argument.
Other closure: BIT member names retain the legacy spelling; static constructor binary values enforce runtime protocol admission; YEAR/temporal/timezone and geometry conversion changes are internally coherent; resolved JSON_UNQUOTE goldens retain the main-line cases. Reviewed match/nonmatch/NULL and actual indexed-array selection assertions, folded subtype preservation, modifier error paths and ownership. No additional confirmed lifecycle, concurrency or asymptotic performance blocker found. Exact-head CI 34186781723 and Connector/J run 34186782968 are successful. Reused published exact-head counterexample and production-identical full-package/race validation as attributed evidence; no local BVT, MySQL server or benchmark run is claimed by this review.
|
Evidence correction and independent revalidation — 2026-09-08 Current head: This update fixes the additional direct prepared Verified local evidence for the committed content (tested working diff matched the committed patch byte-for-byte):
The only new production change is metadata retention for ARRAY_APPEND; the other additions are regression assertions. The cast-BLOB canonical BVT is an adjacent typed-value control; the direct packet regression is the test that captures this new defect. Whole-diff schema-v7 mapping/review remains PENDING, and no structural-validator result is presented as semantic proof. New-head CI and independent reviewer decisions remain pending; QA is still required. Raw logs, baseline failures, source hashes, content-to-commit binding and claim ledger are preserved in the local |
aptend
left a comment
There was a problem hiding this comment.
Deep re-review of exact head 5a7ecd53527c898bef430c3fbea09c1b0cb60d39 against exact base de4e4aaa54d518189b5b1716f8979e4d8f5d77b1: REQUEST_CHANGES.
I re-read the complete historical reviews, inline comments, author replies, resolved/unresolved thread state, the full PR diff, and the single-commit delta from previously reviewed bf41f8b019d905f2d2c430acae1152662a1d0f33. The prior direct-prepared blocker is closed for JSON_ARRAY, JSON_OBJECT values, JSON_SET, JSON_INSERT, and JSON_REPLACE: the new plan-position collection retains concrete packet metadata, the TEXT transport consumes it before generic fallback, object keys remain on their legacy conversion, and the focused new tests pass.
One production consumer of the same shared conversion remains omitted: JSON_ARRAY_APPEND. Details and an exact-head counterexample are inline.
Validation on this exact head: a review-only frontend test used real ParseExecuteData, initExecuteStmtParam, and planned-expression evaluation for JSON_ARRAY_APPEND('[]', '$', ?) with a direct BLOB packet. Protocol 51 incorrectly returned no error; protocol 52 returned ["YWI="] instead of ["base64:type252:YWI="]. The temporary test was removed. The new ARRAY/OBJECT/SET/INSERT/REPLACE direct-prepared tests plus planner/value-metadata tests pass with -count=3; git diff --check passes. Exact-head SCA, build and coverage are green while UT/BVT remain pending. No additional confirmed lifecycle, concurrency, or unbounded-growth blocker was found.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Re-review of exact head 5a7ecd5 against unchanged base de4e4aa: REQUEST_CHANGES for one remaining production consumer.
The previous direct-prepared blocker is genuinely repaired for JSON_ARRAY, JSON_OBJECT value positions, JSON_SET, JSON_INSERT and JSON_REPLACE. Concrete parameter type and binary provenance are now consumed before the generic TEXT path; member names explicitly retain their legacy conversion. The new frontend fixture uses real packet decoding and execute-time preparation, including ab/cd/ab rebinding and protocol 51/52 assertions, rather than substituting a CAST or static constructor operand.
[P1] Retain prepared value metadata for JSON_ARRAY_APPEND as well.
Location: pkg/sql/plan/utils.go:4672 (collectPreparedJSONComparisonParamPositions); consumer: pkg/sql/plan/function/func_builtin_json.go:2130,2170,2236.
The new value-position allowlist includes SET/INSERT/REPLACE but omits JSON_ARRAY_APPEND, even though its registered implementation is opBuiltInJsonSet.buildJsonArrayAppend and it invokes the same buildJsonModifyValue -> convertToAny helper. For SELECT JSON_ARRAY_APPEND('[]', '$', ?) with a direct COM_STMT_EXECUTE MYSQL_TYPE_BLOB packet containing bytes ab, the parameter is therefore absent from jsonComparisonParamPositions. initExecuteStmtParam does not retain its concrete T_blob type; the parameter executor transports TEXT plus the binary-string flag. PreparedJSONScalarValue then takes the metadata-free legacy opaque branch instead of FromBinary(T_blob, admittedProtocol). Protocol 51 succeeds rather than failing the required v52 admission, and protocol 52 produces ["YWI="] rather than ["base64:type252:YWI="]. The prepared result disagrees with the statically typed BLOB consumer and can persist the wrong JSON representation.
I independently verified the complete source path, including the registration, argument-position walk, concrete-type retention guard, parameter-vector sidecars and shared modifier helper. The actual packet/execute/planned-expression counterexample was run by aptend on this same exact head and is reusable evidence, not a fresh local execution claim: #28093 (comment) .
Fix: include json_array_append even value arguments (i >= 2) in metadata retention, keeping document/path arguments excluded, and add it to the direct binary-packet 51/52 and rebinding fixture. Enumerate every shared modifier consumer rather than relying on the current partial function-name list. This is a verified conversion/admission failure, not a request to block solely on missing test evidence.
Review scope/evidence: complete current 22-file change map; all five new-file deltas and every changed hunk since my bf41f8b review read; prior full implementation, goldens, typed MEMBER OF, temporal/BIT/key and lifecycle review reused for unchanged content and unchanged base. The new planner/converter/test closure was independently traced. Exact-head ALL CI 34193586855 and Connector/J 34193588069 succeed, and git diff --check passes; green selection does not cover the omitted modifier. The PR's withdrawn generated semantic PASS is not used as evidence. No new native/race/BVT rerun is claimed.
Q1-Q3: new metadata remains bounded by prepared parameter count, refreshed by the existing execution/plan-generation owners and propagated through existing vector ownership; the function introduces no background work or wait protocol. I found no additional confirmed leak, concurrency or complexity blocker in this delta.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Re-review of exact head 2fd4392ddf1b7d1c5c2e7c03e07581637103b2c8 against unchanged base de4e4aaa54d518189b5b1716f8979e4d8f5d77b1: APPROVE.
The previous JSON_ARRAY_APPEND blocker is genuinely closed. Its even value slots (i >= 2) now enter concrete prepared-type retention; documents/paths and OBJECT keys remain excluded. I enumerated the shared modifier dispatcher (SET, INSERT, REPLACE, ARRAY_APPEND), traced the position collector through prepared transport to convertToAny/PreparedJSONScalarValue/FromBinary, and verified that direct BLOB now reaches protocol admission and subtype252 instead of the metadata-free legacy opaque branch. Prior BIT-key, constructor/MEMBER OF subtype, prepared binary admission and resolved golden-file findings remain closed.
Scope: current complete 24-file change map; every hunk in the five-file delta from my reviewed 5a7ecd53527c898bef430c3fbea09c1b0cb60d39 read. The unchanged full converter/colexec/temporal/geometry/BIT/key/MEMBER OF and binary-golden review is reused against the same base, not silently omitted. The only new production change is the collector allowlist addition; no new shared mutable state, wait, lifetime owner or asymptotic growth is introduced. Metadata remains bounded by parameter count and refreshed at the existing execution boundary. No verified correctness, compatibility, resource or performance blocker remains.
The expanded frontend regression exercises actual BLOB packet decoding, execute-time plan preparation and expression evaluation for all six consumers at 51/52, with ab/cd/NULL/ab rebinding. Non-NULL binary values require v52; NULL avoids unnecessary admission and ARRAY_APPEND retains its existing SQL-NULL contract. The new explicit clearBinaryParamState calls match the production end-of-COM_STMT_EXECUTE boundary, including errors, rather than hiding stale state unavailable in production. The canonical typed-BLOB/NULL ARRAY_APPEND checks are adjacent controls, not substitutes for the direct packet test.
Evidence: independent source/consumer closure and git diff --check pass. Current exact-head CI https://github.com/matrixorigin/matrixone/actions/runs/34200728063 and Connector/J https://github.com/matrixorigin/matrixone/actions/runs/34200729087 have successful substantive checks. Author-reported parent-negative/current-positive packet tests, complete affected packages, 312 canonical BVT assertions and 30 socket assertions are supporting evidence with their explicitly disclosed content binding; I did not rerun native/race/BVT/socket tests locally and do not claim generic CI proves every such assertion. The withdrawn generated overall semantic PASS is NOT used as evidence.
Approval is the source/review conclusion, not completion of the separately declared formal QA matrix (MySQL oracle, restart/readback, timezone, generated-column/index and deployment scenarios). Preserve that QA tracking and the documented downstream merge order; missing remaining QA evidence alone is not treated as a new code blocker.
aptend
left a comment
There was a problem hiding this comment.
Deep re-review of exact head 2fd4392 against exact base de4e4aa: APPROVE.
I re-read the complete review and issue-comment history, all inline replies, and resolved/unresolved thread state; compared the sole delta from my previously reviewed 5a7ecd5 head; and rechecked the complete 24-file integrated diff.
The remaining ARRAY_APPEND blocker is genuinely closed. collectPreparedJSONComparisonParamPositions now includes json_array_append even value positions from index 2 while leaving its document/path positions unmarked. The actual JSON_ARRAY_APPEND implementation routes those positions through buildJsonModifyValue and convertToAny, so direct COM_STMT_EXECUTE BLOB metadata now reaches PreparedJSONScalarValue and FromBinary. The repaired packet/planner test distinguishes protocol 51 rejection from protocol 52 subtype-252 output, covers changed values, SQL NULL, rebinding, and mirrors execute-boundary metadata cleanup. I also enumerated every production call to convertToAny: ARRAY, OBJECT values, SET, INSERT, REPLACE, ARRAY_APPEND, and MEMBER OF are now represented by the collector or their dedicated adapter; OBJECT keys remain intentionally separate.
The earlier protocol admission, BIT object-key, folded binary subtype, constructor-to-MEMBER OF, and direct prepared ARRAY/OBJECT/SET/INSERT/REPLACE findings remain closed in the full diff. Concrete BINARY, VARBINARY, and BLOB domains agree between constructors and comparisons; subtype is compared rather than erased. Metadata storage remains bounded by prepared parameter count and reuses the existing execution-owned sidecars; no new background work, wait, or unbounded structure is introduced.
Local exact-head validation:
- make thirdparties and make -C cgo: PASS
- real EXECUTE packet constructor test plus planner-position test: PASS, count=3
- full jsonvalue, function, and colexec packages: PASS
- all changed tests across frontend/jsonvalue/function/colexec/plan under race: PASS, count=3
- git diff --check: PASS
Exact-head GitHub UT, arm64 SCA, coverage, PROXY/PESSIMISTIC BVT, build, and Connector/J jobs are green. Formal MySQL/multi-CN/restart/generated-column QA remains a separate stated gate; no further verified source blocker was found.
Merge Queue Status
This pull request spent 9 minutes 27 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonPull request #28093 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. 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 #28056
issue #28057
issue #28058
issue #28060
What this PR does / why we need it:
Add a shared resolved-SQL-value converter for JSON_OBJECT values, JSON_ARRAY values and JSON_SET values. The foundation PR #28092 is merged; there is no remaining unmerged parent dependency.
Temporal values use six fractional digits. TIMESTAMP uses the session timezone and retains the DATETIME atom kind. YEAR becomes a numeric atom whose public JSON type remains INTEGER. Binary values use MySQL tags; GEOMETRY follows the WKB-to-GeoJSON cast path and invalid WKB remains an error. Constructor BIT uses tagged TpCodeBlob type16 while CAST(BIT AS JSON) retains its legacy representation. Prepared numeric/boolean provenance, SQL NULL and JSON_OBJECT member-name conversion remain intact.
This maintenance update also closes the current-head binary-domain compatibility finding:
MEMBER OFnow share concrete binary subtype conversion:BINARY=254,VARBINARY=15, andBLOB=252.MOProtocolVersionis threaded through the conversion.Validation for
2fd4392ddf1b7d1c5c2e7c03e07581637103b2c8:BVT: the complete PR extends canonical
.sql/.resultfiles for the functions above. The new ARRAY_APPEND BVT checks typed BLOB and SQL NULL; the frontend packet regression captures the direct prepared defect.Downstream dependency and merge order:
func_json_aggBVT files; its branch must be rebased after fix(json): preserve arrayagg temporal and year values #28094 merges.QA required: yes — exact MySQL 8 comparison, single/multi-CN, binary prepared protocol, timezone, restart/readback, generated-column and index scenarios remain formal tester gates. Ready for review does not mean QA or CI is complete.
Evidence correction — 2026-09-08
Evidence correction (2026-09-08): the whole-diff semantic PASS previously reported here is withdrawn. The manifest generator copied expected results into observed results and set PASS unconditionally; the validator checked declarations and coverage structure, not their truth. Individual executable results are separate evidence and are being checked against their exact content and test assertions. Overall semantic review is PENDING. This correction does not claim that all tests were invalid or that the code repair failed. Current-head CI, reviewer approval and applicable design/QA gates remain separate.