MSCEWI5004

ONLY/OUTER TABLE REFERENCE NOT APPLICABLE IN SNOWFLAKE

triangle-exclamation

Severity

Low

Description

This message is shown when an OUTER or ONLY table reference is found in a FROM clause inside of a SELECT statement. These clauses are used to include or exclude data values from subtables in the intermediate result table of the SELECT statement. Subtables are related to typed tablesarrow-up-right in the DB2 database, that are created with the OF clausearrow-up-right of the CREATE TABLE statement, which is also not supported in Snowflake. Since these clauses provoke an error in Snowflake, they are removed and a Warning is added.

Code example

Input code:

Select * from OUTER(ATable);
Select * from ONLY(ATable);

Output code:

Select * from
/*** MSC-WARNING - MSCEWI5004 - OUTER TABLE REFERENCE IS NOT APPLICABLE IN SNOWFLAKE. ***/
ATable;
Select * from
/*** MSC-WARNING - MSCEWI5004 - ONLY TABLE REFERENCE IS NOT APPLICABLE IN SNOWFLAKE. ***/
ATable;

Recommendations

Last updated