generate_series
generate_series (Integers)
Generate a series of integer values.
Input Arguments
Parameter | Description | Data Types |
---|---|---|
| Starting integer value, inclusive. | BIGINT |
| Ending integer value, inclusive. | BIGINT |
| Increment to increase or decrease and values that follow. Integer. | BIGINT |
Output Columns
Name | Description | Data Types |
---|---|---|
| The integer series specified by the input arguments. | Column<BIGINT> |
Example
generate_series (Timestamps)
Generate a series of timestamp values from start_timestamp
to end_timestamp
.
Input Arguments
Parameter | Description | Data Types |
---|---|---|
| Starting timestamp value, inclusive. | TIMESTAMP(9) (Timestamp literals with other precisions will be auto-casted to TIMESTAMP(9) ) |
| Ending timestamp value, inclusive. | TIMESTAMP(9) (Timestamp literals with other precisions will be auto-casted to TIMESTAMP(9) ) |
| Time/Date interval signifying step between each element in the returned series. | INTERVAL |
Output Columns
Name | Description | Output Types |
---|---|---|
| The timestamp series specified by the input arguments. | COLUMN<TIMESTAMP(9)> |
Example
Last updated