-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add STDEV()
aggregate function
#1553
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1553 +/- ##
=======================================
Coverage 89.21% 89.22%
=======================================
Files 372 374 +2
Lines 34723 34795 +72
Branches 3915 3921 +6
=======================================
+ Hits 30979 31046 +67
- Misses 2471 2472 +1
- Partials 1273 1277 +4 ☔ View full report in Codecov by Sentry. |
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.
An initial round of reviews.
Signed-off-by: Johannes Kalmbach <johannes.kalmbach@gmail.com>
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.
Some very small suggestions.
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.
A very last tiny request for the changes.
Conformance check passed ✅No test result changes. |
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 very much.
I will let the checks run once again, and then we can merge this.
Quality Gate passedIssues Measures |
Thank you for this, it's a really useful shortcut! There were quite a few complaints from SonarCloud, please have another quick look whether any of these should be addressed. |
@hannahbast We have undone the merge and reopened this PR as #1614. I will address the Sonarcloud problems there. |
Add a new aggregate function
STDEV(X)
which computes the (sample) standard deviation, such that a user will not have to repetitively typemath:sqrt(sum(math:pow((X - avg(X)), 2)) / (count(*) - 1))
. This is not part of the SPARQL standard, but also doesn't cause any conflicts.