SSC-EWI-RS0008

Date literal is not supported in Snowflake.

circle-info

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentationarrow-up-right

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected]envelope.

Thank you for your understanding.

Severity

High

Description

This conversion issue is added since In Redshift you can apply the DELETE statement to materialized views used for streaming ingestionarrow-up-right. In Snowflake, these views are transformed into dynamic tables, and the DELETE statement cannot be used on dynamic tables.

Code Example

Input Code:

IN -> Redshift_01.sql
CREATE MATERIALIZED VIEW mv AS
SELECT id, name, department_id FROM employees WHERE department_id = 101;

DELETE FROM mv
WHERE id = 2;

Output Code:

Recommendations

  • Because dynamic tables cannot be directly deleted from, you can achieve the same result by replacing the dynamic table definition.

  • If you need more support, you can email us at [email protected]envelope

Last updated