SSC-FDM-VT0001

Expression in USING constraint might not be supported in Snowflake.

Description

For Vertica's DEFAULT USING clause, the translation to Snowflake is partial. While Snowflake can apply the expression as a simple DEFAULT value when new rows are inserted, it does not support the deferred refresh capability from the USING portion. Additionally, the expression itself may fail due to Vertica-specific functions or syntax that are incompatible with Snowflake. Therefore, a warning is added to highlight both the functional difference in refresh logic and the need to review the translated expression for syntax compatibility.

Code Example

Input Code:

IN -> Vertica_01.sql
CREATE TABLE table1 (
    base_value INT,
    derived_value INT DEFAULT USING (base_value + 100)
);

Output Code:

OUT -> Vertica_01.sql
CREATE TABLE table1 (
    base_value INT,
    derived_value INT DEFAULT (base_value + 100) /*** SSC-FDM-VT0001 - EXPRESSION IN USING CONSTRAINT MIGHT NOT BE SUPPORTED IN SNOWFLAKE ***/
)
COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": {  "major": 0,  "minor": 0,  "patch": "0" }, "attributes": {  "component": "vertica",  "convertedOn": "06/17/2025",  "domain": "no-domain-provided" }}';

Recommendations

Last updated