SSC-FDM-PG0008

Select into unlogged tables are not supported by Snowflake.

Description

Select Into is not supported by Snowflake, this functionality was emulated with CREATE TABLE AS. In addition, Snowflake always uses transaction logs to protect tables and ensure data integrity and recoverability. Consequently, tables with the UNLOGGED option are not supported by Snowflake.

Code Example

Input Code:

IN -> PostgreSQL_01.sql
select column1
      into UNLOGGED NewTable
      from oldTable;

Output Code:

OUT -> PostgreSQL_01.sql
 CREATE OR REPLACE TABLE NewTable AS
      select column1
--      --** SSC-FDM-PG0008 - SELECT INTO UNLOGGED TABLES ARE NOT SUPPORTED BY SNOWFLAKE. **
--            into UNLOGGED NewTable
            from
            oldTable;

Recommendations

Last updated