-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Implement GroupsAccumulator for min/max Duration #15322
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
Conversation
876425e to
d853365
Compare
8ef8afc to
406aa8b
Compare
alamb
left a comment
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 @shruti2522 -- this looks great -- I think it just needs one more change
| Timestamp(Nanosecond, _) => { | ||
| primitive_max_accumulator!(data_type, i64, TimestampNanosecondType) | ||
| } | ||
| Duration(Second) => { |
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 think you need to add Duration to the list of types supported in groups_accumulator_supported as well.
| | Binary | ||
| | LargeBinary | ||
| | BinaryView | ||
| | Duration(_) |
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 think you need to add
Durationto the list of types supported ingroups_accumulator_supportedas well.
Hi @alamb, I have added it here and similarly for Min
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.
sorry -- I didn't see that for some reason. Thank you 🙏
alamb
left a comment
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.
Thank you @shruti2522 -- looks great 🙏
Which issue does this PR close?
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Yes
Are there any user-facing changes?
Yes