range()
Creates a list of values between start and stop - the stop parameter is exclusive.
Arguments & returns
10 overloadsrange(start)
Scalar
| Overload link | start |
Returns |
|---|---|---|
| #01 | BIGINT |
BIGINT[] |
range(start, stop)
Scalar
| Overload link | start | stop |
Returns |
|---|---|---|---|
| #02 | BIGINT | BIGINT |
BIGINT[] |
range(start, stop, step)
Scalar
range(col0)
Table
| Overload link | col0 |
Returns |
|---|---|---|
| #06 | BIGINT |
TABLE |
range(col0, col1)
Table
| Overload link | col0 | col1 |
Returns |
|---|---|---|---|
| #07 | BIGINT | BIGINT |
TABLE |
range(col0, col1, col2)
Table
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.
In a query
Make a small dataset from nothing.
A table function produces rows you can query. range starts at zero and stops before the upper bound.
Haybarn WASM 1.5.5-rc3 · In your browser
Guide recipe · Run to view results.