Uh oh!
There was an error while loading. Please reload this page.
Support Accumulator for avg duration - #15468
Merged
Merged
Conversation
alamb
commented
Apr 7, 2025
Contributor
Ping @shruti2522 -- this one looks pretty close |
alamb
commented
Apr 7, 2025
Contributor
I think you need to update the signature of Avg to support the new type as well |
shruti2522
commented
Apr 17, 2025
ContributorAuthor
@alamb this one's ready for review whenever you get a chance. |
alamb
reviewed
Apr 17, 2025
alamb
left a comment
Contributor
There was a problem hiding this comment.
Thank you very much @shruti2522 -- this code looks really nice. I think we need a few more tests but then it will be ready to merge
Thank you so much. This is great
Uh oh!
There was an error while loading. Please reload this page.
| statement ok | ||
| drop table dict_test; | ||
| # avg_duartion |
Contributor
There was a problem hiding this comment.
Suggested change
| # avg_duartion | |
| # avg_duration |
Uh oh!
There was an error while loading. Please reload this page.
shruti2522
marked this pull request as draft
April 18, 2025 11:15
shruti2522
marked this pull request as ready for review
April 18, 2025 12:47
nirnayroy pushed a commit
to nirnayroy/datafusion
that referenced
this pull request
May 2, 2025
* Support Accumulator for avg duration * Add tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
AVGfor durations #15458Rationale for this change
Enable support for averaging
DurationtypeWhat changes are included in this PR?
Added accumulator to compute the Avg of
Durationtypes, would add support forGroupsAccumulatorin a follow-up PR.Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.