-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
* Bump upper bound to <0.22 * Add changelog entry
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: 'dbt_utils' | ||
version: '0.7.0' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jtcohen6
Author
Contributor
|
||
|
||
require-dbt-version: [">=0.20.0", "<0.21.0"] | ||
require-dbt-version: [">=0.20.0", "<0.22.0"] | ||
|
||
config-version: 2 | ||
|
||
|
2 comments
on commit 696cf26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! A note that I'm hoping will be helpful for the future: we tried to use dbt-utils and found ourselves stuck because there's no version of dbt-utils that declares itself compatible with both dbt 0.19.0 and dbt 0.20.0. There's a version that is compatible with only 0.19.x, and a version that's compatible with only 0.20.x. (We need a version that's compatible with both because Airbyte is on 0.19.0, but only 0.20.0 runs on Mac M1 machines.)
It's probably unnecessary to set the upper bound so conservatively; dbt-utils 0.6.6 still works with dbt 0.20.0, but it won't run because this file imposes <0.20.0
. To avoid this problem in the future, you might consider removing the <0.22.0
part of the requirement, or at least raising it to the next major version instead of minor version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zestyping Really appreciate your comment, and I share your aspiration for looser upper boundaries on the dbt-core version.
There were breaking changes to dbt-utils
in dbt Core v0.20, namely the schema generic tests and some behind-the-scenes changes to dispatch
functionality (#371). Of course, it's quite possible that you're using dbt_utils
macros that were unaffected by these changes.
There are two things we're planning to make this simpler in the future:
- Release dbt-core v1.0. After that, project code will not break in new minor versions. If we make changes, they must be backwards compatible. So we should feel comfortable saying that, if dbt-utils macros work with
dbt-core==1.0.0
, they will work with all versions1.x.y
. - Split up this package! It doesn't make sense that a change to generic tests requires you to struggle through upgrading, if you're only relying on
dbt_utils.datediff
, a macro that hasn't changed at all.
@jtcohen6 is that OK it is still declared '0.7.0' here?