snowflake.snowpark.functions.sequence¶
- snowflake.snowpark.functions.sequence(start: Union[Column, str], stop: Union[Column, str], step: Optional[Union[Column, str]] = None) Column[source]¶
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::