You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bindings (which is actually used in jinja2 template) is passed again in this function, in to snowflake connector's execute.
One suggestion is to give jinja2 template args a dict argument that works like kwargs, so these values will not interfere snowflake connector's execute method
Currently, Jinja2 templating is done here:
lore/lore/io/connection.py
Lines 413 to 434 in f4789b1
And this is how they are called:
lore/lore/io/connection.py
Lines 168 to 169 in f4789b1
The problem here is all the args are passed twice, one to jinja2, the other to snowflake connector.
It will break down right here, because nothing could be formated this way.
For example if we want to run
we will see
processed_params
is not empty and breaks the program here:https://github.com/snowflakedb/snowflake-connector-python/blob/83dfe771c5404657f2008fec15bf0386185b6d70/cursor.py#L491
The text was updated successfully, but these errors were encountered: