Skip to content

docs: correct aggregation function list in aggregate.md#6002

Merged
max-sixty merged 1 commit into
mainfrom
docs/aggregate-function-list
Jun 14, 2026
Merged

docs: correct aggregation function list in aggregate.md#6002
max-sixty merged 1 commit into
mainfrom
docs/aggregate-function-list

Conversation

@prql-bot

Copy link
Copy Markdown
Collaborator

Problem

The note in aggregate.md listed the declared aggregation functions as min, max, count, average, stddev, avg and sum. Two inaccuracies:

  • avg is not defined in std.prql — only average exists (the example further down the same page uses average salary, confirming the real name).
  • count_distinct is defined (std.prql line 163) but was omitted.

Solution

Replace avg with count_distinct so the list matches the functions actually declared in std.prql (min, max, sum, average, stddev, count, count_distinct).

Testing

Documentation-only change to prose (not a runnable PRQL block), so no test is added. Verified the list against the let declarations in std.prql.

Found during the nightly code-quality survey.

`avg` is not a declared function (only `average`); `count_distinct` was
missing. Match the list to the declarations in std.prql.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@max-sixty max-sixty merged commit e6cb186 into main Jun 14, 2026
37 checks passed
@max-sixty max-sixty deleted the docs/aggregate-function-list branch June 14, 2026 16:27
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