Skip to content
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

Fix incompatibility with dbt utils v1.0.0 #43

Merged
merged 3 commits into from
Jan 23, 2023

Conversation

davidsr2r
Copy link
Contributor

@davidsr2r davidsr2r commented Jan 6, 2023

Should fix the bug reported in: #40 as it's the recommended fix, but it should be checked.

Basically, the code refers to a dbt_utils macro that no longer exists in that package and is now included in dbt core itself, so needs no prefix.

You may want to support early versions of dbt without this support, in which case a try / catch is probably the way to go, but that's a choice I'm not going to advocate for or impose in this request, until requested.

Should fix the bug reported in: kristeligt-dagblad#40 as it's the recommended fix, but it should be checked.
@davidsr2r davidsr2r changed the title Fix incompatibility with v1.3.0 Fix incompatibility with dbt utils v1.0.0 Jan 6, 2023
@rbjerrum
Copy link
Collaborator

rbjerrum commented Jan 6, 2023

Thanks @davidsr2r, this looks good. Can you update dbt_project.yml to require the correct dbt version? This should allow us to support old as well as new versions of dbt.

@davidsr2r
Copy link
Contributor Author

davidsr2r commented Jan 8, 2023

Awesome! No worries at all :)

The changes were made in dbt version 1.2.0, referred to as "cross-db" macros, which are documented here.

Do I not need to increment the version of dbt_ml as well?

@rbjerrum
Copy link
Collaborator

rbjerrum commented Jan 9, 2023

Would be neat to increment the dbt_ml version as well. This is a breaking change so next version will be 0.6.0.

@davidsr2r
Copy link
Contributor Author

Done :)

@davidsr2r
Copy link
Contributor Author

Hey hey! Just checking in on this -> anything else I can do to help?

@rbjerrum rbjerrum merged commit 44e423e into kristeligt-dagblad:master Jan 23, 2023
@davidsr2r davidsr2r deleted the patch-1 branch February 2, 2023 02:57
@franzoni315
Copy link

Hi guys! Any idea when the new version will be released?

@rbjerrum
Copy link
Collaborator

I have one more small fix to implement, then we'll get this shipped. Hopefully ready to cut a new version today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants