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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions dbt_meshify/dbt_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,10 @@ def __init__(
def _load_graph(manifest: Manifest) -> Graph:
"""Generate a dbt Graph using a project manifest and the internal dbt Compiler and Linker."""

from dbt.compilation import Compiler, Linker
from dbt.compilation import Linker

compiler = Compiler(config={})
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.


@property
def graph(self):
Expand Down
201 changes: 137 additions & 64 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading