SSC-FDM-PG0009

Sequence nextval property snowflake does not guarantee generating sequence numbers without gaps

Description

Snowflake does not guarantee generating sequence numbers without gaps. The generated numbers consistently increase in value (or decrease in value if the step size is negative) but are not necessarily contiguous.

Code Example

Input Code:

IN -> PostgreSQL_01.sql
SELECT nextval('seq1');

Output Code:

OUT -> PostgreSQL_01.sql
SELECT seq1.nextval /*** SSC-FDM-PG0009 - THE SEQUENCE NEXTVAL PROPERTY SNOWFLAKE DOES NOT GUARANTEE GENERATING SEQUENCE NUMBERS WITHOUT GAPS. ***/;

Recommendations

Last updated