-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix json_extract_string, json_extract_float64 with multi path param #18770
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
…atrixorigin#18770) fix json_extract_string, json_extract_float64 with multi path param Approved by: @m-schen, @heni02
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #https://github.com/matrixorigin/MO-Cloud/issues/4066
What this PR does / why we need it:
fix json_extract_string, json_extract_float64 with multi path param
PR Type
Bug fix, Tests
Description
json_extract_string
andjson_extract_float64
functions to handle multiple path parameters correctly.op.simple
and ensure paths retrieve a single value.Changes walkthrough 📝
func_builtin_json.go
Fix JSON extraction functions to handle multiple paths
pkg/sql/plan/function/func_builtin_json.go
op.simple
and path length.func_json_extract.result
Add test results for JSON extraction with multiple paths
test/distributed/cases/function/func_json_extract.result
json_extract
,json_extract_float64
, andjson_extract_string
.func_json_extract.test
Add test cases for JSON extraction with multiple paths
test/distributed/cases/function/func_json_extract.test