-
Notifications
You must be signed in to change notification settings - Fork 606
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
feat(expr): support jsonb_extract_path(_text)
function
#13143
Conversation
Signed-off-by: Runji Wang <wangrunji0408@163.com>
Signed-off-by: Runji Wang <wangrunji0408@163.com>
184bc84
to
7bab36f
Compare
Codecov Report
@@ Coverage Diff @@
## main #13143 +/- ##
==========================================
- Coverage 68.26% 68.26% -0.01%
==========================================
Files 1505 1505
Lines 254901 254931 +30
==========================================
+ Hits 174015 174032 +17
- Misses 80886 80899 +13
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 8 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Signed-off-by: Runji Wang <wangrunji0408@163.com>
This comment was marked as outdated.
This comment was marked as outdated.
Sorry for the previous comment. After checking deeper, the PostgreSQL way is:
Now back to our implementation:
|
I see. So it turns out that |
Yes, PostgreSQL resolves
|
Signed-off-by: Runji Wang <wangrunji0408@163.com>
Signed-off-by: Runji Wang <wangrunji0408@163.com>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Based on #13110, this PR implements their variadic form functions:
by rewriting variadic arguments to array[] in the frontend. e.g.
It seems that variadic functions still need special handlings in type inference. We might consider to support such signatures and automate rewrite in the future:
#[function("jsonb_extract_path(jsonb, variadic varchar[]) -> jsonb")]
Checklist
./risedev check
(or alias,./risedev c
)Documentation