I am trying to call stored procedure while creating snowflake tasks after WHEN
CREATE OR REPLACE TASK SCHEMA.TASK1
warehouse = '..'
schedule = '5 minute'
WHEN
CALL DB.SCHEMA.CHECK_STATUS('arg1');
as
CALL DB.SCHEMA.ETL('arg1');
Is this valid,
WHEN
CALL DB.SCHEMA.CHECK_STATUS('arg1');
if yes how do we achieve this to return true or false in task. Snowflake documentation link - https://docs.snowflake.com/en/sql-reference/sql/create-task.html#examples
I am getting following error
SQL compilation error: syntax error line 5 at position 9 unexpected 'DB'.