How to use Show Command in Stored Procedures - Not working
问题 Following the bog post https://community.snowflake.com/s/article/How-to-USE-SHOW-COMMANDS-in-Stored-Procedures The result I get it NaN, which makes sense since the return value is set to float in this Blog Post. I have tried setting the return value to varchar, string etc. but Iget different results like Object object etc. CREATE OR REPLACE PROCEDURE SHOP(CMD VARCHAR) returns float not null LANGUAGE JAVASCRIPT EXECUTE AS CALLER AS $$ var stmt = snowflake.createStatement( { sqlText: ${CMD} } )