Skip to content

Commit

Permalink
Aggs can't use named arguments (github#565)
Browse files Browse the repository at this point in the history
Remove the named args in the counter_agg as they don't work.

Co-authored-by: Lana Brindley <github@lanabrindley.com>
Co-authored-by: Jacob Prall <prall.jacob@gmail.com>
  • Loading branch information
3 people authored Oct 29, 2021
1 parent 6cd169d commit 128c356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timescaledb/how-to-guides/hyperfunctions/counter-aggs.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ going on in each part.
with t as (
SELECT measure_id,
time_bucket('15 min'::interval, ts) as bucket,
counter_agg(ts, val, bounds => time_bucket_range('15 min'::interval, ts))
counter_agg(ts, val, time_bucket_range('15 min'::interval, ts))
FROM example
GROUP BY measure_id, time_bucket('15 min'::interval, ts))
SELECT time_bucket,
Expand Down Expand Up @@ -122,7 +122,7 @@ out of it.
WITH (timescaledb.continuous)
AS SELECT measure_id,
time_bucket('15 min'::interval, ts) as bucket,
counter_agg(ts, val, bounds => time_bucket_range('15 min'::interval, ts))
counter_agg(ts, val, time_bucket_range('15 min'::interval, ts))
FROM example
GROUP BY measure_id, time_bucket('15 min'::interval, ts);
```
Expand Down

0 comments on commit 128c356

Please sign in to comment.