-
Notifications
You must be signed in to change notification settings - Fork 648
[Feat] Implement function map_filter
#22077
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
base: main
Are you sure you want to change the base?
Conversation
test_map_filter_case( | ||
"(map_filter:map(varchar,int4) $0:map(varchar,int4) \ | ||
(function:boolean $0:varchar $1:int4 (greater_than:boolean $1:int4 1:int4)))", | ||
"M<T,i> M<T,i> |
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.
I have no idea why the test can't run:
failures:
---- scalar::map_filter::tests::test_map_filter_basic stdout ----
thread 'scalar::map_filter::tests::test_map_filter_basic' panicked at /Users/fenglv/ucasfl/git/risingwave/src/expr/core/src/expr/build.rs:313:18:
expect type in "M<T,i>"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
scalar::map_filter::tests::test_map_filter_basic
@lmatz Hi, could you take a look at it? |
async fn test_map_filter_basic() { | ||
test_map_filter_case( | ||
"(map_filter:map<varchar,int4> $0:map<varchar,int4> \ | ||
(function:boolean $0:varchar $1:int4 (greater_than:boolean $1:int4 1:int4)))", |
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.
@lmatz I'm try to make the test work, but it's not easy to support lambda function
in build_from_pretty
.
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Implement function
map_filter
. Closes #20919.Example:
Checklist
Documentation
Release note