-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-503] Add method
to target
keys
#335
Labels
Comments
github-actions
bot
changed the title
Add
[CT-503] Add Apr 18, 2022
method
to target
keysmethod
to target
keys
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In #250, we added logic to explicitly render the SQL binding character as
?
instead of%s
if the method isodbc
:dbt-spark/dbt/include/spark/macros/materializations/seed.sql
Lines 1 to 3 in fbf9abe
Turns out that didn't work as we hoped, because
{{ target.method }}
doesn't actually return anything! Why? Themethod
attribute isn't included among its connection keys, exposed to the Jinja context:dbt-spark/dbt/adapters/spark/connections.py
Lines 157 to 159 in fbf9abe
This makes bugs like #334 much trickier to debug than they should be. dbt's debug-level logs (
logs/dbt.log
) show%s
for all SQL binding parameters, and we just have to trust thatsqlparams
is magically catching and converting those characters right as the query is being sent off viapyodbc
:dbt-spark/dbt/adapters/spark/connections.py
Lines 280 to 287 in fbf9abe
The text was updated successfully, but these errors were encountered: