Optimizing Snowflake (4): monitoring and debugging stored procedures using query tagging
When you run Snowflake stored procedures, debugging is not the easiest thing. This is my example stored procedure, dynamically dropping tables: create or replace procedure groupby.public.droptables(message VARCHAR) RETURNS VARCHAR NOT NULL LANGUAGE SQL AS $$ DECLARE v_sql_query VARCHAR; c_table CURSOR FOR SELECT TABLE_NAME FROM