Error executing a query that has snowflake variables #11047
Unanswered
srod-mckesson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, community!
I have a SQL query saved in a file (e.g., file.sql).
My query begins by setting variables (see below).
I import this file using Python and execute it using Ibis with a Snowflake backend.
However, I think reference to the variable (e.g.,
$var1
) breaks something, and I don't know how to fix it :(Any thoughts or assistance would be appreciated.
PS. I've removed the variables in the SQL query itself and hardcoded their values, and this runs seamlessly in Python with Ibis but I'd like to have the variables run with Ibis too for easier code maintenance.
Beta Was this translation helpful? Give feedback.
All reactions