Add "by" examples to aggregate function docs, plus a few more fixes #5218
+145
−5
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.
What's Changing
This adds group-
by
examples to all the aggregate function docs that were missing them.As I was going through all the pages, I fixed a couple things along the way and added a bonus
dcount()
example.Why
In a recent community Slack thread, a user needed some guidance on the proper use of
by
. He noted thatby
examples on each aggregate function pages may have helped him figure it out on his own, which makes sense.Details
While
by
is mentioned in thesummarize
operator page (and I'm proposing more improvements there via #5216) I suspect that new users may be more likely to land on the individual aggregate function pages first since they may do searches or follow links to them after seeing references to them in programs as they usually appear withoutsummarize
.