Repository navigation
Conversation
e3901e2 to
260c2ab
Compare
260c2ab to
a5c485b
Compare
a5c485b to
5493899
Compare
aptend
left a comment
There was a problem hiding this comment.
Deep-reviewed exact head 67bb55b6e3e6f82d786c469f7dba8368aba3c3cf against merge base 3d67664696e48cec0efc84308fb7de1cfda2f7db, including the complete diff and all existing reviews, issue comments, replies, and thread state. Requesting changes because binary-domain values are accepted whenever their bytes happen to be valid UTF-8.
The declared landing dependency has also changed since the existing review: #28090 is now merged as 3d2e5c336ed6b6d034908cd4d2012bc9737fe958, but it is not an ancestor of this exact head or its recorded base. This PR explicitly requires synchronization after #28090, so the new integrated head needs re-review.
Validation: native third-party/CGo artifacts built successfully; go test -count=1 ./pkg/sql/plan/function ./pkg/sql/plan ./pkg/frontend passed; focused changed tests passed under -race; git diff --check passed. A review-only ASCII VARBINARY counterexample reproduced the blocker and was removed afterward.
|
Rechecked the exact current head Exact-head CGo validation:
The current inline P2 is addressed by this head; requesting re-review. |
|
Exact current head: The attempt-2 BVT failures in the existing This update changes the affected text fixtures to explicit Validation:
The local mo-tester invocation is still unavailable because this host has no Java Runtime; fresh CI is running on this head. Please re-review the updated exact head. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Re-reviewed exact head fb6a102 against 39225f5. APPROVE: no remaining blocking code finding.
Both previous blockers are closed. JsonQuote uses GetIsBinaryStringAt(row) after NULL/mask filtering, independently of UTF-8 validity. #28090 is merged (3d2e5c3), and git ancestry confirms its merge is contained in this head. The PR body's open-predecessor/old-head paragraphs are stale; please refresh them before landing.
Read the complete 11-file PR diff: quote escaping/UTF-8, row-aware shared template, declared expanding result bounds, prepared metadata versus runtime marker preservation, ENUM/SET JSON casts, wire metadata and SQL persistence tests. ASCII binary/invalid bytes, typed NULL, mixed/masked domains and text->binary->text COM_STMT_EXECUTE are covered. The CHAR(... USING utf8mb4) fixture correction preserves the intended domain check instead of weakening it. Runtime is a linear scan/output append; no new shared state, wait, background work or retained cache is introduced.
Evidence reused: author's focused exact-head domain/CHAR tests and direct-protocol boundary checks. Independently checked current CI: Linux UT, SCA and pessimistic multi-CN BVT pass. The proxy BVT log explicitly reports func_json_quote.test 54/54 passed (0.407s). Coverage UT fails in snapshot/feature-registry cases, including 'query feature registry for SNAPSHOT failed', not this changed quote path; the proxy job has other failures and is not globally green. I have not rerun native/MySQL tests or waited for CI.
This is exact-head implementation approval, not permission to bypass required CI/merge protections.
aptend
left a comment
There was a problem hiding this comment.
Re-reviewed exact head fb6a102 against merge base 39225f5 and current main f72ca9e. APPROVE: no blocking issue remains.
The prior binary-domain counterexample is closed: JsonQuote performs the row-aware GetIsBinaryStringAt(row) rejection after NULL/mask filtering, so ASCII BINARY/VARBINARY/BLOB and invalid bytes fail while typed binary NULL and masked rows retain their contracts. The mandatory #28090 predecessor is merged as 3d2e5c3 and is an ancestor of this head.
I read the complete production, UT, protocol, and BVT diff and traced the text result through return-bound derivation, prepared-marker rebinding, wire metadata, CTAS persistence, and the ENUM/SET consumers that now cast the quoted text back to JSON. The JSON control-character escaping, UTF-8 validation, NULL behavior, direct/string-function composition, and full runtime prepared value are covered. Current-main changes touch several neighboring files, but the synthesized merge is conflict-free and the effective JSON_QUOTE changes remain intact; no shared state, wait, lifecycle, or unbounded retained resource is introduced.
Evidence reused at this exact head: Linux UT and SCA pass; pessimistic multi-CN BVT passes; the proxy BVT artifact reports func_json_quote.test 54/54 in 0.407s. The proxy job fails in the unrelated temporary_table_limitation.sql case, and coverage UT fails in snapshot/feature-registry tests outside this change. git diff --check and current-main merge-tree both pass. No local native test rerun is claimed.
|
CI diagnosis for the exact head
I reviewed the exact changed-file boundary and the failed test paths; no direct or transitive JSON_QUOTE dependency reaches these snapshot/temporary-table cases. I am not rerunning the same current-head clusters: the required checks remain red and therefore unresolved/blocked_external, not fixed. A fresh green exact-head run is still required before merge. |
Merge Queue Status
This pull request spent 5 minutes 53 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonPull request #28091 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 #28044
issue #28045
What this PR does / why we need it:
Return
JSON_QUOTEasutf8mb4_bintext instead of binary JSON. Validate UTF-8 and the runtime string domain, emit JSON string escapes, preserve SQL NULL, derive the expanding result bound, and retain full prepared values without a synthetic narrowing execution cast. Existing ENUM/SET-to-JSON planner consumers explicitly cast quoted display text back to JSON.Landing status
3d2e5c336ed6b6d034908cd4d2012bc9737fe958and is an ancestor of this exact head.2a12a06aa1931c93c53c11d34465e832a9713cf8, resolving the latest upstream test-file conflict while retaining the JSON_QUOTE regression and upstream prepared-interval coverage. It includes merged fix(temp): keep ALTER COPY DDL in executor transaction #28356 (fdc1e0ca8f9696ada9668408e8caffc1d3b7c924) for temporary ALTER COPY transaction ownership.2a12a06aa1931c93c53c11d34465e832a9713cf8; this PR remains Ready and must continue through normal merge protections.fb6a10200e86073c5954288c74718daca7f3c2c8reportedfunc_json_quote.test54/54 PASS. Its PROXY job failed only in the unrelated temporary-table ALTER path (16 failures, including allocator metadata errors), UT Coverage timed out after repeated dependency-downloadcurltimeouts before a terminal coverage report, and Utils Coverage was downstream (PREREQUISITES_READY=false). Fresh CI for this head is pending.34207581205on the preceding exact headc8eaf2cf515d235ed1ee5da0d4b69043993bfc17passed SCA, main UT, PROXY BVT, and standalone pessimistic BVT. UT Coverage alone failed on unrelatedpkg/common/mpool/TestReallocPhysicalFailureRestoresOwnershipwith runnerfatal error: runtime: cannot allocate memory; its diagnostics showed a 15 GiB runner with no swap. A new exact-head run is required after this upstream sync.Validation at exact head
2a12a06aa1931c93c53c11d34465e832a9713cf82a5842b8c69ce793aadc5fd1a0b01668e9318be5: PASS; the laterc8eaf2cfresult-only update and upstream-only sync did not change these production paths.pkg/sql/plan/function,pkg/sql/plan, andpkg/frontendon that validation code: PASS.pkg/tests/issuesCGo coverage invocation forTestIssue23861FulltextSnapshotRestoreandTestIssue28317ViewSnapshotGateOrderSQL: PASS; the local report is[no statements], so it is functional targeted evidence and does not replace CI's fullcoverpkgmode.2a5842b8c69ce793aadc5fd1a0b01668e9318be5:func_json_quote.test54/54 PASS;temporary_table_limitation.sql137 total, 130 success, 7 ignored, 0 failed, 100% success. The later result-only and upstream test merge do not alter these BVT production paths.87525d7984b1850cb10ce44eda17b7244e26fe9fdccf366060b137a4d773d6df.git diff --check: PASS. Fresh exact-head CI is pending after this update.BVT: extended —
test/distributed/cases/function/func_json_quote.testand.result; integrated-main metadata expectations intest/distributed/cases/temporary/temporary_table_limitation.resultare refreshed and the full canonical case passes.QA required: yes — after required CI and merge protections are satisfied, verify text/protocol metadata, prepared execution, charset/escaping, CTAS and persisted consumers on the merged version. Keep the associated issues under formal QA validation.