SNOW-997888: util_text.split_statements()
breaks stored procedure statements (LANGUAGE SQL)
#1843
Labels
util_text.split_statements()
breaks stored procedure statements (LANGUAGE SQL)
#1843
Python version
Python 3.11.6 (main, Nov 2 2023, 04:39:43) [Clang 14.0.3 (clang-1403.0.22.14.1)]
Operating system and processor architecture
macOS-14.2.1-arm64-arm-64bit
Installed packages
What did you do?
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
What did you expect to see?
I expected that
split_statements()
would correctly detect that it's in a stored procedure and not break up the SP.Can you set logging to DEBUG and collect the logs?
The text was updated successfully, but these errors were encountered: