snowflake.snowpark.functions.sequence¶
- snowflake.snowpark.functions.sequence(start: Union[Column, str], stop: Union[Column, str], step: Optional[Union[Column, str]] = None) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L4090-L4139)¶
Generate a sequence of integers from start to stop, incrementing by step. If step is not set, incrementing by 1 if start is less than or equal to stop, otherwise -1.
- Parameters:
start – the column that contains the integer to start with (inclusive).
stop – the column that contains the integer to stop (inclusive).
step – the column that contains the integer to increment.
- Example::