Skip to content

Commit 89731ea

Browse files
committed
docs: Update signature for bucket()
Update the docs for the bucket function to reflect that the second argument must be a duration (number values are no longer allowed).
1 parent 16d3b52 commit 89731ea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

book/src/super-sql/functions/time/bucket.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ quantize a time or duration value into buckets of equal time spans
55
## Synopsis
66

77
```
8-
bucket(val: time, span: duration|number) -> time
9-
bucket(val: duration, span: duration|number) -> duration
8+
bucket(val: time, span: duration) -> time
9+
bucket(val: duration, span: duration) -> duration
1010
```
1111

1212
## Description
1313

1414
The `bucket` function quantizes a time or duration `val`
15-
(or value that can be coerced to time) into buckets that
16-
are equally spaced as specified by `span` where the bucket boundary
17-
aligns with 0.
15+
into buckets that are equally spaced as specified by `span`
16+
where the bucket boundary aligns with 0.
1817

1918
## Examples
2019

0 commit comments

Comments
 (0)