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

Enable bytes and string data types for max/min udaf #9081

Merged
merged 6 commits into from
May 2, 2022
Merged

Enable bytes and string data types for max/min udaf #9081

merged 6 commits into from
May 2, 2022

Conversation

bvarghese1
Copy link
Member

Description

Enable bytes n string data types for max/min udaf

Testing done

Added unit and integration 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 #")

- The max and min udaf was generalized to handle date & time data types
  See - 5134393
- As a result, the code was capable of supporting string and bytes data types
- This commit simply enables them in the max and min udaf's
@bvarghese1 bvarghese1 requested a review from a team as a code owner April 28, 2022 15:04
@@ -52,6 +52,8 @@ public KsqlAggregateFunction createAggregateFunction(
case DATE:
case TIME:
case TIMESTAMP:
case STRING:
Copy link
Member

Choose a reason for hiding this comment

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

Nice catch that STRINGs weren't supported or mentioned on the issue: #8913

Copy link
Member Author

Choose a reason for hiding this comment

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

The code already had support for those types. @jzaralim also asked if we could support strings along with bytes.

Copy link
Member

@jnh5y jnh5y left a comment

Choose a reason for hiding this comment

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

LGTM!

@bvarghese1 bvarghese1 merged commit 7acb285 into confluentinc:master May 2, 2022
@bvarghese1 bvarghese1 deleted the feat_max_min_byte_string_type branch May 2, 2022 19:44
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.

3 participants