Skip to content

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
@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