-
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
fix: add new types to udaf functions #8081
Conversation
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.
Thanks @jzaralim ! LGTM with a couple minor notes inline.
return latest(STRUCT_TIMESTAMP, ignoreNulls, getComparator(ignoreNulls)); | ||
} | ||
|
||
@UdafFactory(description = "return the latest N value of a timestamp column", |
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.
nit:
@UdafFactory(description = "return the latest N value of a timestamp column", | |
@UdafFactory(description = "return the latest N values of a timestamp column", |
and similar for the other descriptions in this file.
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.
Done
}, | ||
{ | ||
"name": "collect_list bytes map", | ||
"format": ["JSON"], |
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.
Out of curiosity, does the PROTOBUF format not support the BYTES type?
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.
It does, it just requires specifying the schema to the test, which I was too lazy to do.
Description
Adds support for timestamp, time, date and bytes to collect_list, collect_set, latest_by_offset and earliest_by_offset.
Fixes #7787
Testing done
unit/qtt
Reviewer checklist