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? |
bf742b3 to
881f2a1
Compare
|
Published The prior current-head PROXY case had 8 mismatches out of 118 statements. Those eight BINARY/VARBINARY/BLOB JSON_UNQUOTE cells now reflect the existing typed opaque representation ( Normal comparison of the complete canonical The retained binary/native was reused only after verifying unchanged production inputs from its actual producer to the published test-only content. No new build or blanket main sync was needed. This does not claim PROXY/new-head CI, mixed-CN, deployment or full metadata acceptance. Existing CR/provenance/final cumulative allocation/design/cost gates remain open; no automatic resolution or re-review is requested. |
|
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: d28cdc4b5bdac9642151106c5bcb1b007a1643ce
Assessment: needs_validation
Reviewed all 32 changed files, affected owners/callers and frozen comments. No confirmed defect remains, but mixed-version and binary prepared-statement validation lacks independently verifiable artifacts.
Model: gpt-6-astra / xhigh
Session: 01a12d8f-7dea-77c2-a565-38d45b5564e4 · slot 0 · generation 0
Validation:
-
Isolation preflight and native build passed. Repository test wrapper verified native provenance for the frozen revision.
-
29 top-level tests passed across seven packages, covering opaque rendering, binary casts, lazy ELT, folding, protocol fences, persisted floors and JSON_TABLE width boundaries.
-
Reconciled passing logs with check-run receipts 1791944387510784648-3.json and 1791944412087022800-3.json: exact head, empty source delta, exit 0. Assigned source remains unchanged.
-
Evidence ledger: /home/xupeng/.local/state/mo-bot/jobs/ed824d8050571a9f4d780114/attempt-1/review-evidence.json.
-
Frozen CI snapshot reports successful build, UT, SCA and PROXY/PESSIMISTIC BVT; upgrade compatibility jobs were skipped.
Limitations:
-
local_validation is empty. Author summaries describe actual protocol-112/113 execution and stale-endpoint rejection, but provide no retained commands, terminal receipts or logs to verify those claims. Matching artifacts must establish rejection before incompatible pipeline transfer and recovery.
-
The claimed Connector/J probes lack retained source/class provenance and protocol captures establishing metadata plus first-NULL and binary/text/NULL rebinding. Recover and reconcile those artifacts against the candidate's production inputs; SQL PREPARE tests and simulated-version unit tests do not close this gap.
aptend
left a comment
There was a problem hiding this comment.
Re-review: APPROVE at exact head d28cdc4; frozen base/merge-base 1b66ff1.
Read all 32 changed files, all five prior reviews, both inline comments/replies, all nine conversation comments and the unresolved/outdated thread. Compared the earlier approved 880cb85 scope with the complete current base-relative diff; the older approval was not treated as current execution evidence.
This is a focused repair of established JSON consumption/canonical opaque contracts through existing owners, not a new storage format or architecture; the feature-design gate is exempt. Reviewed selected-subtree ELT execution/folding, malformed and NULL domains, reset/free and masks, subtype-preserving CAST, compact storage versus visible wrapping, all affected rendering consumers, prepared source domains, persisted floors, placement, destination, sender/receiver and execution-stream confirmation. Actual main 838bf5d still ends at protocol112; 113 is not colliding with a merged capability. Main's intervening scalar RankOption/DDL/unrelated function changes do not add a new expression carrier or alter this capability's inputs.
Independent Linux/amd64 Go1.27.1 native CGo evidence:
- Eight owning packages pass: 7,555 top-level / 30,144 named passes, 2 skips. Compile/colexec owning race suites pass: 1,575 top-level passes, zero skips/failures.
- A real embedded LOG/TN/CN frontend and controlled COM_STMT_PREPARE/EXECUTE client ran 18 executions on the same statement/connection: first-all-NULL, deliberately encoded BLOB versus text roles with distinct guard/charset assertions, invalid UTF-8, 58-byte wrapping, JSON null versus SQL NULL, selected malformed text and same-statement recovery, repeated twice. Actual result ColumnDefinition packets preserve type252/collation46. The Go driver alone does not distinguish byte/string wire types; the task-owned client explicitly encodes BLOB roles. This is not a Connector/J run.
- Separately compiled exact-base and exact-head processes exchanged real MORPC frames using the production codec, old protocol handler and new sender. The old binary's actual capability112 rejects minimum113 before pipeline transmission; minimum112 succeeds. The old peer asserts three protocol-only requests, zero pipeline/proc payloads, and terminal cleanup. Combined with the actual-owner serialization tests deriving minimum113 and the remoteRun error-return ordering, this closes the original incompatible-send path at its repaired boundary. It is a native protocol-component interop test, not a mixed SQL cluster.
- Exact-head CI 38491087557 completed successfully, including UT, coverage, SCA, PROXY and PESSIMISTIC BVT. Diff/format checks pass.
The opaque subtype/wrapping expectations are independently supported by MySQL8.0.45 opaque rendering and base64 wrapping, not regenerated output alone.
I did not rely on unavailable author mixed-cluster/Connector/J raw artifacts. Nonzero remote SQL contribution, deployed mixed-cluster QA, full cross-server metadata equivalence and future #28947 integration are not claimed by the local probes above. Those broader qualifications remain separate; no confirmed blocker remains in the current repair.
aunjgr
left a comment
There was a problem hiding this comment.
Reviewed commit d28cdc4 independently. No blocking finding.
The JSON-aware ELT identity preserves selected-subtree evaluation through runtime and constant folding, while leaving legacy string overloads intact. Binary-to-JSON conversion uses the existing canonical opaque representation; visible 76-column wrapping happens at rendering, without rewriting stored payloads. SQL NULL, JSON null, text and binary domains remain distinct.
I traced source/cached-plan, placement, actual-destination, stream and persisted-expression admission for the new overload and opaque-text consumers, and reviewed the selected/unselected malformed-JSON, subtype, wrap-boundary and prepared regressions. Passing exact-head CI and the documented distributed evidence are reused; simulated protocol tests are not being presented as old-binary execution. Allocation of the protocol number must be reconciled with authoritative main at merge, not coordinated across unrelated unmerged branches.
Resolve MORPC version, expression feature, test, and receiver validation conflicts while retaining the JSON consumer and upstream execution contracts. Move JSON ELT and opaque text execution to MORPC version 117. Preserve main's published versions 113-116 and verify that they reject the new JSON contract. Align remote stream, persisted expression, and planner folding consumers. Validation with Go 1.27.1 and -p 2: affected package builds, focused JSON/string and expression/protocol unit tests, and changed-package go vet. The PR diff relative to upstream main passes whitespace checks.
Preserve main MORPC117 collation-aware LEAST/GREATEST and move JSON ELT/opaque execution to MORPC118 across all expression admission and persisted floors. Retain both feature detectors and cover combined query ordering and wire roundtrips.
|
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: af3010ec5a8740ce8b4e7ccedc2f542dcff0a9ba
Assessment: request_changes
Reviewed all 32 changed files and affected callers. Reusing existing conversion, execution and protocol owners is reasonable, but aggregate compatibility coverage is incomplete and constant folding introduces a measured regression on ordinary SQL.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
-
P1
pkg/pb/plan/string_literal_form.go:1778: GROUP_CONCAT(j) aggregates stored JSON containing a canonical opaque value longer than 57 bytes during a mixed-version rollout.
Impact: GROUP_CONCAT uses the changed JSON serializer but receives no version-118 requirement. Distributed finalizers can therefore produce different bytes and truncation results depending on worker version. Cover GROUP_CONCAT, its aliases/DISTINCT variants, and serialized aggregate descriptors in the shared compatibility contract.
Evidence: The production aggregate probe returned 97 bytes with the base renderer and 99 with HEAD. Its bound plan reported opaque_feature=false, remote_floor=0 and persisted_floor=0; source admission accepted version 117. A real scope-encoding probe with a simulated version-117 worker retained multi-CN placement and serialized NeedEval=true with stream minimum 0. Retained logs: group-concat-probe.jsonl, group-concat-base.jsonl and group-concat-wire.jsonl. -
P2
pkg/sql/plan/utils.go:2063: Constant folding traverses a large or nested expression containing no JSON operations.
Impact: The new helper scans the entire subtree at every recursive node, making deep-expression folding quadratic. The same defect exists in rule/constant_fold.go:243. Reuse one feature analysis per subtree, as the adjacent spatial check already does.
Evidence: Three-run controlled benchmarks against the exact base folding implementations measured 1,024 nested boolean operators at 0.120 ms versus 34.053 ms for the API folder, and 0.107 ms versus 34.325 ms for the optimizer. Balanced 1,024-operator trees slowed 6.4–6.8 times. Fixtures use bound JSON-free expressions; both variants allocated zero bytes per operation. See fold-base.log, fold-head.log and fold-results.json.
Validation:
-
Isolation preflight passed; current native provenance verified against 192 source inputs and 47 retained artifacts.
-
54 selected existing tests passed across seven packages, including lazy evaluation, reset, binary conversion, rendering, protocol admission and persisted requirements.
-
Two diagnostic assertions reproduced missing aggregate fences. Renderer controls and 16 benchmark cases, repeated three times per variant, completed.
-
Frozen exact-head CI reports successful build, Ubuntu UT, arm64 SCA, coverage and PROXY/PESSIMISTIC BVT.
-
Commands, source fingerprints, exit receipts, logs and overlay hashes reconciled in /home/xupeng/.local/state/mo-bot/jobs/c41984d4326e7a6febbd5a64/attempt-1/review-evidence.json. Source remains unchanged.
Limitations:
-
Version-117 endpoint responses were simulated; no actual mixed-version cluster or binary prepared-protocol execution was performed.
-
Base comparisons substituted exact base implementation files with otherwise identical HEAD dependencies; measurements concern component behavior and folding cost, not end-to-end SQL throughput.
-
The supplied local-validation inventory is empty; historical author summaries were not treated as independently verified execution evidence.
|
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: 258767ac9a9b58a3f97ab8c41ea73027ee73ad91
Assessment: request_changes
Reviewed the complete 32-file delta and surrounding owners. Reusing existing JSON conversion, execution and protocol machinery is appropriate. The latest commit fixes quadratic folding, but aggregate compatibility remains incomplete and duplicate feature scans still regress ordinary folding performance.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1586-7a01-9000-d45e20995cf8 · slot 1 · generation 1
-
P1
pkg/pb/plan/string_literal_form.go:1778: GROUP_CONCAT(j), including its LISTAGG alias, consumes stored opaque JSON containing more than 57 payload bytes during a mixed-version rollout.
Impact: The changed renderer produces different aggregate text, but GROUP_CONCAT is absent from compatibility detection. Version-117 workers remain eligible and receive executable aggregates without the required version-118 stream floor. Cover both bound aggregate expressions and lowered Aggregate.Op/argument descriptors.
Evidence: Independently reconciled retained receipts, logs and unchanged production inputs: a 58-byte opaque payload produces 97 bytes with the base renderer and 99 with this renderer. The bound aggregate reports opaque_feature=false, remote/persisted floors=0 and successful source admission at 117. The real scope encoder retains multi-CN placement for a simulated 117 worker and emits minimum_stream_protocol=0. Current-head equivalence is recorded in retained-evidence-audit.json. -
P2
pkg/sql/plan/utils.go:2064: Either constant folder processes an ordinary JSON-free expression tree; the same duplication exists in rule/constant_fold.go:243.
Impact: The spatial check and new JSON check each invoke the same complete RequiredRemoteExpressionFeatures traversal. Negative-result propagation fixes quadratic growth but leaves unnecessary CPU overhead across SELECT, DML and DDL planning. Compute the shared feature result once and use both flags in both folders.
Evidence: Fresh three-sample benchmarks of the actual folders show 57–71% overhead across balanced and deep trees of 8–1024 nodes. At 1024 deep nodes, API folding rises from 0.118 ms to 0.188 ms and optimizer folding from 0.107 ms to 0.175 ms. A diagnostic single-scan control measures 0.119/0.105 ms respectively. All variants allocate zero bytes; commands, receipts and measurements are retained in review-evidence.json and fold-results.json.
Validation:
-
Isolation preflight passed. Repository provenance verification matched 192 native source inputs and 47 retained artifacts.
-
Fresh candidate regression tests passed: 21 root tests, 94 named test/subtest passes across plan and plan/rule, including lazy ELT, prepared rebinding and existing folding contracts.
-
Reconciled ten retained command/source/exit receipts, log hashes and diagnostic inputs. Only the two folders changed since that evidence; compatible semantic coverage includes 54 passing root tests and the aggregate counterexamples.
-
Completed controlled base, candidate and single-scan benchmarks; verified receipts, logs and unchanged source.
-
Evidence retained at /home/xupeng/.local/state/mo-bot/jobs/133f5273fc5a3324361d40ec/attempt-1/review-evidence.json.
Limitations:
-
Aggregate transport probes simulate version-117 capability; they do not execute a mixed old/new SQL cluster.
-
Performance measurements isolate folding components, not end-to-end SQL latency.
-
Frozen exact-head CI reports successful build, Ubuntu UT, SCA, coverage and PROXY/PESSIMISTIC BVT. Upgrade compatibility was skipped; raw per-case CI reports and current binary-client evidence were not supplied.
-
The linked issue's full body was absent; its contract was assessed from frozen PR discussion and tests.
|
mo-bot review · Commit: "interrupted" |
|
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: 015a64c23bb0712131c3195de39163b569bf86a3
Assessment: request_changes
Reviewed all 35 changed files and supplied comments. The design reuses established execution, rendering and protocol owners; prior protocol and folding findings are resolved. One confirmed cleanup defect remains in the added tests.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
- P2
pkg/sql/plan/function/func_json_string_consumers_test.go:227: Running the new malformed-JSON, visible-JSON, CONCAT_WS and ELT tests calls FunctionTestCase.Run() without releasing the cases.
Impact: After test cleanup, these groups retain 640 bytes of off-heap allocations and 2,648 bytes of heap allocation ownership per run. Process cleanup does not free their input/result vectors, leaving leaks and polluted global memory accounting.
Evidence: TestReviewJSONStringConsumerOwnership fails after subtest cleanup in ownership-probe.jsonl (receipt 1792447700475384605-6.json). An overlay changing only the terminal Run() calls to RunAndFree() preserves every assertion and leaves zero outstanding allocations in all four groups (ownership-control.jsonl; receipt 1792447736681676947-4.json). Use RunAndFree() or register case.Free() for each case.
Validation:
-
Isolation preflight passed; reconciled 198 native inputs and six library hashes with retained repository build evidence.
-
Focused tests passed: 55 top-level tests and 205 subtests across eight packages. The separate ownership probe exposed the reported leak.
-
27 real TCP prepared executions passed, covering explicit BLOB/text types, cached-type reuse, metadata, NULLs, wrapping and error recovery.
-
Separately built base/head binaries passed MORPC interoperability checks: minimum 123 rejected by the protocol-122 peer, minimum 122 accepted, and zero pipeline/process payloads received.
-
Eight folding benchmark fixtures measured current/base-control median ratios of 0.993–1.021 with identical allocations.
-
Commands, source fingerprints, exits, logs and overlays were audited in /home/xupeng/.local/state/mo-bot/jobs/592efc465671e223f65cbf0b/attempt-1/validation-manifest.json. Source remains unchanged.
Limitations:
-
Protocol interoperability testing covers components, not a deployed mixed-version SQL cluster.
-
Benchmarks compare exact-base folder implementations on otherwise identical candidate dependencies, not whole-query throughput.
-
Raw author artifacts and CI logs were unavailable; CI reuse is limited to frozen exact-head status records. The linked issue body was not supplied.
|
Published normal merge 85bbf27 after independent exact-tree review. Main125–128 is retained; candidate129 owner/placement/sender/receiver/persisted controls and the corrected two-line protocol fixture passed. Native/provenance,9 owning packages, vet/lint, canonical normal BVT346/346 with four clean reentries, and three actual CHECK namespace SI/recovery executions passed. Initial obsolete-expectation failure and two existing skips remain recorded. Original old-head CI attribution is INCONCLUSIVE, not classified upstream/flaky; evaluate new-head required CI independently. Genuine mixed binaries, binary-prepared captures and formal review/final-allocation/deployment acceptance remain open. Historical folding measurements are not a new performance PASS for changed registry/executor inputs. No original thread or reviewer-wide acceptance is automatically closed, and no duplicate re-review was requested. |
|
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: 85bbf27d78eae62736927f49fe69808fe88f05a2
Assessment: approve
Reviewed all 35 changed files, affected callers and frozen review concerns. The design keeps conversion, rendering and compatibility checks with their existing owners, preserves stored JSON representation, and reuses the expression lifecycle for lazy ELT evaluation. Prior aggregate-fence, folding-performance and fixture-cleanup defects are resolved. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Verified clean assigned source, successful isolation preflight, and native provenance covering 200 inputs and five outputs.
-
Current-head focused tests passed: 55 top-level tests and 205 subtests across eight packages, covering lazy selection, malformed inputs, memory cleanup, opaque rendering and protocol boundaries.
-
Current-head TCP prepared-statement probe passed 27 binary executions covering BLOB/text bindings, cached types, NULL-first execution, metadata, wrapping and error recovery.
-
Compared both constant folders against exact-base implementations using identical dependencies and fixtures: median head/base ratios 0.82–1.04, with unchanged allocations.
-
Measured added admission overhead on JSON-free projection plans: approximately 0.7 microseconds for one column and 30 microseconds for 1,024 columns; no allocations in these fixtures.
-
Audited retained mixed-binary MORPC receipts, logs, binary hashes and 11,560 exported source blobs. Relevant sender and transport owners remain unchanged; fresh tests cover the current 129/128 boundaries.
-
Frozen exact-head CI reports successful build, unit, static-analysis, coverage and BVT checks. Local commands, source fingerprints, exit receipts and logs are reconciled in /home/xupeng/.local/state/mo-bot/jobs/bcbda722b2629a6d87a7f4e1/attempt-1/validation-manifest.json.
Limitations:
-
No current-head mixed-version cluster deployment was executed; compatibility assessment combines current boundary tests with audited historical transport execution.
-
Performance measurements isolate folding and admission costs; they do not establish end-to-end throughput.
-
The linked issue body was not supplied; behavioral requirements were assessed from the frozen PR description, comments and source.
Merge Queue Status
This pull request spent 52 minutes 16 seconds in the queue, with no time running CI. ReasonPull request #28938 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:
Refs #28905. QA required: yes. Keep the issue open; this PR description does not authorize automatic closure or claim deployed acceptance. Existing Ready state is preserved.
What this PR does / why we need it:
Correct JSON string-consumer rendering and selection, including CONCAT/CONCAT_WS, lazy selected ELT, typed opaque-to-visible text and JSON GROUP_CONCAT/LISTAGG forms. Preserve ordinary text, binary and NULL behavior. Bind affected local/cached/persisted, placement, actual stream and destination/receiver owners to the same JSON capability. Both real constant folders share negative-subtree feature analysis without evaluating unselected lazy JSON operands. Terminal test-vector ownership is explicitly released.
Current verified conflict/protocol-test increment — 2026-10-22
Normal merge
85bbf27d78eae62736927f49fe69808fe88f05a2(tree64b0987015aedb50c2908b251d70afb4d36d77dd) retains source0d7d6ac8de786e291ee453bc89f08a51bbebea33and fixed main6cbe375b49696021d72778baa292a66287f080bd. Main125 LOAD,126 VIEWS,127 IndexSearch and128 JSON/numeric keep their meanings; JSON ELT/opaque text uses provisional129 consistently. Independent unmerged branches sharing a number are not interoperable by implication. A two-line stale test expectation was updated125→129; real predecessor128 placement/sender/receiver rejection,129 admission and ordinary controls remain asserted.Matching native/provenance, focused feature tests,9 owning packages, incremental vet/configured lint PASS. The initial owning failure is retained; only its two obsolete CONCAT/CONCAT_WS expectations failed, then the complete owning compile package passed after correction, with eight unchanged-package results reused. Two existing planner skips remain explicit, not PASS. Canonical normal JSON-consumers55/55 twice plus JSON-CONVERT118/118 twice =346/346, four clean same-instance reentries, no oracle regeneration.
The merged target includes#30670's CHECK namespace fix. The actual SI regression and fresh-transaction recovery controls passed three bounded executions on the candidate. This is not attribution of the original old-head CI incident to upstream or flaky behavior; new-head required CI remains separate.
Still open: genuine old/new binary artifacts/routing/recovery, binary-prepared metadata and protocol captures, formal reviewer/design/final-allocation decisions and deployed QA. Historical folding benchmark receipts remain producer-bound; no new performance measurement or reviewer-wide closure is claimed for this merge. No original review thread is automatically resolved and no reviewer is automatically re-requested.
Earlier evidence (historical)
Earlier detailed maintenance entries remain historical at their named producers, not current-head CI or interoperability proof. The complete pre-compaction description is retained in this task and GitHub edit history; commits, comments, original review requirements and adverse evidence were not removed. Historical folding measurements (including actual two-file overlays rather than complete baseline binaries) retain their original inputs, ranges and limitations. No new benchmark, server-to-server metadata, genuine predecessor-binary deployment or customer QA result is asserted here.
Remaining acceptance includes actual old/new binary routing/recovery artifacts, binary-prepared metadata/rebinding captures, measured-input applicability reconciliation, formal reviewer/design/final-allocation decisions, current-head required CI and deployed QA. SQL PREPARE, normal SQL value/error comparisons, candidate-advertised versions and green generic CI do not substitute for those gates. No automatic reviewer-wide closure or duplicate re-review is requested.