Repository navigation
fix(json): support JSON_MERGE compatibility alias - #28329
mergify[bot] merged 11 commits into
Conversation
|
Addressed the three design review findings in
The PR body now records the repaired exact head and semantic preflight result. It remains Draft pending design re-review; no executable code or BVT case changed in this documentation-only revision. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Independent design review of docs/design/mysql_json_compat_28033.md at 33e96ff: APPROVED for the proposed staged contracts. This revision changes only that document; it is not an implementation approval or permission to merge an extra design-only PR.
The design distinguishes alias reuse from new executors, preserves constructor conversion ownership, separates warning origin from executable-plan rebuilding, and supplies explicit NULL/error, path, resource and QA contracts. Reverse-index underflow has a discriminating nonempty-array case; SEARCH includes the mode/escape/prepared-rebind matrix; MERGE warnings are per syntactic bind origin rather than per row or internal reprepare. The ordered implementation sequence and non-closing umbrella issue remain explicit.
Implementation acceptance must still establish the documented behavior with the pinned MySQL oracle and exact-head UT/BVT, including warning counts after schema-triggered reprepare and bounded traversal/cancellation on deeply nested inputs. I have not run an independent MySQL probe or any runtime test for this documentation-only head. Re-review every implementation head; keep the declared prerequisite/Draft holds until then. Refresh stale prerequisite status in the body when beginning implementation (for example #28090 has since merged).
e96ec42 to
e8037db
Compare
|
Rebased this Ready PR onto the latest
The PR remains Ready for review. Rebase invalidated the previous CI run; fresh exact-head checks are running. No merge or Issue #28033 closure was performed. |
|
Updated at exact head
|
fengttt
left a comment
There was a problem hiding this comment.
What is the result of merging two dictionary, one has "a" : { "foo": "bar"}, the other is "a": ["foo", "bar"]?
And is dictionary merging recursive? I cannot find these answers and I did not see any test covering these. |
|
Under this PR's |
|
Current-head CI diagnosis (head
|
|
Current exact-head CI review ( Ubuntu UT job I classify this as |
Merge Queue Status
This pull request spent 1 hour 10 minutes 41 seconds in the queue, including 1 hour 10 minutes 19 seconds running CI. Required conditions to merge
|
What type of PR is this?
Which issue(s) this PR fixes:
issue #28033
What this PR does / why we need it:
PR1 of the #28033 JSON compatibility series. This PR implements the approved
JSON_MERGEcompatibility alias while keeping the umbrella issue open for the remaining three functions.Implementation and review repairs:
json_mergeas an alias ofJSON_MERGE_PRESERVE; no new function ID, overload, or executor is introduced.*tree.FuncExprfor call-site deduplication. The previous undefinedastExprcompile blocker is removed.txnExecutor.Execmarks each generated internal statement context asJSONMergeWarningInternalReprepare, so internal prepared reprepare and stored-view expansion suppress duplicate warnings while the context is restored before the next user statement.JSON_MERGEbypass plan-cache lookup and insertion so a cached plan cannot lose warning 1287.Dependencies and merge order:
mainafter its predecessor merges; do not stack their unmerged branches.function_id.goandlist_builtIn.gowriters before assigning any future function ID.Non-goals:
Fixes #28033closing reference, issue closure, merge, branch deletion, or post-merge cleanup.Validation (exact PR head
15c72c9aa7265a16000fad34e09e89def5074ee9, base363f8c3fe63ab21f19d8e9ba854c24d2dcaadfc3):json_mergeentry, so the alias cannot bind.08bfd5a97377686a288e6f941e0ed65af6d1501cb615feb983ebb8e4d0d28928.git diff --check: PASS.mo-cgo-testwrapper cannot start because this worktree and its primary worktree lack the requiredcgo/libmo.dylib/matching native artifacts. The ordinarygo testfallback is not acceptance evidence and is not claimed as PASS.