{#- Snowflake: validate a single cursor table from a procedure call.
    Wraps the CALL in a scripting block with optional LET for scalar
    OUT variables, then reads one table using IDENTIFIER().
    Invoked once per output.table. -#}
BEGIN
{{ pre_execute }}
{{ run }};
LET _CURSOR RESULTSET := (SELECT * FROM TABLE(IDENTIFIER({{ table }})));
RETURN TABLE(_CURSOR);
END;
