Skip to content

Commit

Permalink
Merge pull request #796 from vanderhoop/patch-1
Browse files Browse the repository at this point in the history
Fix approx_percentile arguments in two-step_aggregation example
  • Loading branch information
syvb authored Apr 22, 2024
2 parents 073bd5d + 3be59c5 commit 0e8eefb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/two-step_aggregation.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ And I want to do a second level of aggregation, say over a day, I can do it over
```SQL , ignore
SELECT id, time_bucket('1 day'::interval, bucket) as bucket,
sum(sum),
approx_percentile(percentile_agg(percentile_agg), 0.5) as median
approx_percentile(0.5, percentile_agg(percentile_agg)) as median
FROM foo_15
GROUP BY id, time_bucket('1 day'::interval, bucket)
```
Expand Down

0 comments on commit 0e8eefb

Please sign in to comment.