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 Support for Arrays in Sum, Mean, and Median Functions #580

Merged

Conversation

ckganesan
Copy link
Contributor

This PR enhances the functionality of the sum, mean, and median functions to support arrays as input values. Now, users can conveniently calculate the sum, mean, and median of arrays of values, expanding the versatility and usability of these functions.

Implemented based on received feedback. #576 (comment)

@antonmedv
Copy link
Member

Lets not add this feature to sum. I'm planning to convert sum to predicate form:

Events | sum(.Value)

@ckganesan
Copy link
Contributor Author

Lets not add this feature to sum. I'm planning to convert sum to predicate form:

Events | sum(.Value)

I believe this won't impact the functionality of the predicate.

@antonmedv antonmedv merged commit 4cdfd38 into expr-lang:master Mar 3, 2024
10 checks passed
@ckganesan ckganesan deleted the support-array-in-aggregate-func branch March 9, 2024 17:07
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.

2 participants