SSC-EWI-PG0011

The sequence option 'option_name' is not supported by Snowflake.

Severity

Low

Description

Some options available in PostgreSQL for the sequence statement are not supported by Snowflake.

The unsupported options are:

  • Unlogged.

  • AS <data_type>.

  • MinValue.

  • MaxValue.

  • No MinValue.

  • No MaxValue.

  • Cache.

  • Cycle.

  • Owner By.

Code Example

Input code:

IN -> PostgreSQL_01.sql
CREATE UNLOGGED SEQUENCE sequence_name;

Output code:

OUT -> PostgreSQL_01.sql
--** SSC-FDM-PG0009 - THE SEQUENCE NEXTVAL PROPERTY SNOWFLAKE DOES NOT GUARANTEE GENERATING SEQUENCE NUMBERS WITHOUT GAPS. **
CREATE UNLOGGED !!!RESOLVE EWI!!! /*** SSC-EWI-PG0011 - 'UNLOGGED' IS NOT SUPPORTED BY SNOWFLAKE. ***/!!! SEQUENCE sequence_name;

Recommendations

Last updated