Repository navigation
cherrypick: json functions - #24670
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? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Re-checked against the current 4.0-dev base: I still do not think this PR is ready to approve.
The main blocker is no longer just cherry-pick cleanliness. The PR is also replacing behavior that already exists in 4.0-dev:
- it rewrites the existing JSON_ARRAY / JSON_OBJECT implementation from the current JqEncoder-based path to the new bytejson.CreateByteJSON path
- it tightens JSON_ARRAY / JSON_OBJECT type checking in list_builtIn.go, so inputs that previously bound successfully can now fail at bind time
- the changed baselines in test/distributed/cases/function/func_arrayagg.result confirm observable output changes for existing queries (for example salary / avg_salary formatting)
Even if some of those result changes are arguably better or closer to MySQL, that still means this PR is not just adding missing JSON functions anymore. It is changing already-shipping 4.0-dev behavior and bundling an unrelated planner alias change (pow -> power) and its new binder test on top.
Please split / re-cherry-pick this so the PR only contains the intended missing-function backport, or explicitly scope and validate the JSON_ARRAY / JSON_OBJECT behavior replacement as a separate change.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Re-reviewed after taking the pow->power alias out of the blocker set.
I focused on the remaining risk around JSON_ARRAY / JSON_OBJECT behavior replacement and did not find a blocker after the second pass. The JSON-related tests added in this PR are broad, the targeted Go package tests pass with -race, and the visible result changes look intentional and internally consistent with the new bytejson-based representation.
Approve.
Merge Queue Status
This pull request spent 26 seconds in the queue, including 4 seconds running CI. Required conditions to merge
|
What type of PR is this?
Which issue(s) this PR fixes:
issue ##24481
What this PR does / why we need it:
补充函数