-
Notifications
You must be signed in to change notification settings - Fork 1k
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: add functions as UDF input types #6955
feat: add functions as UDF input types #6955
Conversation
34c03c2
to
0afe244
Compare
0afe244
to
6fc7df3
Compare
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.
Excellent. Looking forward to the next PRs in the chain!
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.
Just nits, otherwise LGTM.
ksqldb-engine/src/main/java/io/confluent/ksql/function/udf/map/MapReduce.java
Outdated
Show resolved
Hide resolved
ksqldb-engine/src/main/java/io/confluent/ksql/function/udf/map/MapReduce.java
Outdated
Show resolved
Hide resolved
ksqldb-engine/src/main/java/io/confluent/ksql/function/udf/map/MapTransform.java
Outdated
Show resolved
Hide resolved
* Reduce a map using an initial state and function | ||
*/ | ||
@UdfDescription( | ||
name = "map_reduce", |
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.
can we name this reduce_map
. Map Reduce has a different historical meaning that might make this confusing.
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.
renamed
78f5842
to
04c3e22
Compare
Description
Add functions as UDF argument types. Lambdas are still not usable though since we need to complete work in ExpressionTypeManager , CodeGenRunner, and SqlToJavaVisitor. (Coming soon)
Added in ARRAY_TRANSFORM, MAP_TRANSFORM, REDUCE_MAP
Testing done
Unit tests
Reviewer checklist