Skip to content
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

Merged

Conversation

stevenpyzhang
Copy link
Member

@stevenpyzhang stevenpyzhang commented Feb 5, 2021

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

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@stevenpyzhang stevenpyzhang force-pushed the add-lambda-function-udf branch 3 times, most recently from 34c03c2 to 0afe244 Compare February 5, 2021 06:55
@stevenpyzhang stevenpyzhang marked this pull request as ready for review February 5, 2021 06:58
@stevenpyzhang stevenpyzhang requested a review from a team as a code owner February 5, 2021 06:58
Copy link
Contributor

@agavra agavra left a 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!

Copy link
Contributor

@guozhangwang guozhangwang left a 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.

* Reduce a map using an initial state and function
*/
@UdfDescription(
name = "map_reduce",
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed

@stevenpyzhang stevenpyzhang merged commit 1b39ab5 into confluentinc:master Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants