SSC-FDM-TD0021

Built-in reference to {0} is not supported in Snowflake.

This EWI is deprecated, please refer to SSC-EWI-TD0046 documentation

Description

This error appears when a query referencing DBC.DATABASES table is executed, and the selected column has no equivalence in Snowflake.

Example Code

Input:

IN -> Teradata_01.sql
CREATE VIEW SAMPLE_VIEW
AS
SELECT PROTECTIONTYPE FROM DBC.DATABASES;

Output:

OUT -> Teradata_01.sql
CREATE OR REPLACE VIEW SAMPLE_VIEW
COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": {  "major": 0,  "minor": 0,  "patch": "0" }, "attributes": {  "component": "teradata",  "convertedOn": "08/14/2024" }}'
AS
SELECT
!!!RESOLVE EWI!!! /*** SSC-EWI-TD0046 - BUILT-IN REFERENCE TO PROTECTIONTYPE IS NOT SUPPORTED IN SNOWFLAKE ***/!!!
PROTECTIONTYPE FROM
INFORMATION_SCHEMA.DATABASES;

Recommendations

Last updated