-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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-254] dbt-core - Snapshot - macro dbt_macro__create_schema takes not more than 1 argument(s) #4742
Comments
@rlshuhart Thanks for opening, you're totally right! We need to make that It's worth checking to see if we actually need this Lines 437 to 439 in 5e0a765
If that's indeed the case, your solution (deleting lines 9-11) is the right one. |
I've concluded these lines are totally unneeded. After a bit of digging through the At the time, Drew noted that:
This is in fact what we do: dbt-core/core/dbt/parser/snapshots.py Lines 38 to 40 in 204d535
And have been doing since #1478 (here specifically). This is picked up accordingly by the Worth noting that this piece still isn't perfect, if you're defining |
Thanks a lot for looking into this, @jtcohen6! |
dbt-core/core/dbt/include/global_project/macros/materializations/snapshots/snapshot.sql
Lines 9 to 11 in 3ad61d5
Hi I've raise this same issue in dbt-sqlserver, but the issue might actually lie here after further investigation. I'm running into the issue, "macro 'dbt_macro__create_schema' takes not more than 1 argument(s)", when attempting to do a simple snapshot. When I delete lines 9-11 in the above all goes well.
Please see additional details on dbt-sqlserver issue at dbt-msft/dbt-sqlserver#208
The text was updated successfully, but these errors were encountered: