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

update linker logic using 1.6, bump dependency #117

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

dave-connors-3
Copy link
Collaborator

@dave-connors-3 dave-connors-3 commented Aug 17, 2023

this PR updates our package to use dbt-core 1.6, and updates the use of the Linker class to incorporate the (simpler!) logic in 1.6 after a breaking change was introduced!

closes #116

@dave-connors-3
Copy link
Collaborator Author

@nicholasyager -- i ran poetry upgrade dbt-core -- it looks like there were maybe a handful more changes that I intended (looking mostly at the dev -> main changes on some dependencies), so let me know if there's anything else i shoul dhave done

Copy link
Collaborator

@nicholasyager nicholasyager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dave-connors-3 This PR seems both necessary and sufficient. Thanks for making these changes! ✅

linker = Linker()
compiler.link_graph(linker=linker, manifest=manifest)
return Graph(linker.graph)
return linker.get_graph(manifest=manifest)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is waaaaaay simpler. Kudos to whomever simplified this interface in Core.

Comment on lines +334 to +347
agate = ">=1.7.0,<1.8.0"
cffi = ">=1.9,<2.0.0"
click = ">=7.0,<9"
colorama = ">=0.3.9,<0.4.7"
click = "<9"
colorama = ">=0.3.9,<0.5"
dbt-extractor = ">=0.4.1,<0.5.0"
hologram = ">=0.0.14,<=0.0.16"
dbt-semantic-interfaces = ">=0.2.0,<0.3.0"
hologram = ">=0.0.16,<0.1.0"
idna = ">=2.5,<4"
isodate = ">=0.6,<0.7"
Jinja2 = "3.1.2"
Jinja2 = ">=3.1.2,<3.2.0"
logbook = ">=1.5,<1.6"
mashumaro = {version = "3.6", extras = ["msgpack"]}
minimal-snowplow-tracker = "0.0.2"
networkx = {version = ">=2.3,<3", markers = "python_version >= \"3.8\""}
mashumaro = {version = ">=3.8.1,<3.9.0", extras = ["msgpack"]}
minimal-snowplow-tracker = ">=0.0.2,<0.1.0"
networkx = ">=2.3,<4"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are good additions. I'm glad that a number of these deps moved from being pinned to range locker.

Comment on lines -3 to -13
metrics:
- name: revenue
label: Revenue
model: ref('orders')
description: "Income from all orders less tax"

calculation_method: sum
expression: order_total - tax_paid

timestamp: ordered_at
time_grains: [day, week, month, quarter, year]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is regrettable. Perhaps there's an opportunity to add back in metric tests / semantic model tests in 0.4.x 🤷🏻

@dave-connors-3 dave-connors-3 merged commit 70fe3ff into main Aug 21, 2023
@nicholasyager nicholasyager deleted the upgrade-to-dbt-1-6 branch September 1, 2023 12:54
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.

Update Compiler.link_graph() method, bump package to require dbt 1.6
2 participants