SSC-FDM-SY0001

Calling stored procedure in from might have compilation errors

Description

Snowflake supports calling a stored procedure in the FROM clause when the procedure meets certain conditions otherwise the query fails.

Code Example

Input Code:

IN -> Sybase_01.sql
SELECT * FROM MyProcedure(1, 'test');

Output Code:

OUT -> Sybase_01.sql
SELECT
  *
FROM
  --** SSC-FDM-SY0001 - CALLING STORED PROCEDURE IN FROM CLAUSE MIGHT HAVE COMPILATION ERRORS **
  TABLE(MyProcedure(1, 'test'));

Recommendations

Last updated