[ADAP-1081] [Bug] connections._split_queries()
breaks stored procedure statements (LANGUAGE SQL)
#875
Closed
2 tasks done
Labels
type:bug
Something isn't working
Is this a new bug in dbt-snowflake?
Current Behavior
I wish to manage a Snowflake stored procedure using dbt. Given the following dbt macro:
The statement is being broken because it's split on the semicolons:
I traced this down to the use of snowflake.connector.util_text.split_statements
Expected Behavior
I expected that it would correctly detect that it's in a stored procedure and not break up the SP.
Steps To Reproduce
above
Relevant log output
Environment
Additional Context
I also mentioned in the dbt community slack: https://getdbt.slack.com/archives/C2JRRQDTL/p1703980883124329
The text was updated successfully, but these errors were encountered: