Skip to content

Commit

Permalink
Use Manifest instead of ParseResults [#3163]
Browse files Browse the repository at this point in the history
automatic commit by git-black, original commits:
  307d47e
  6c6649f
  • Loading branch information
gshank authored and iknox-fa committed Feb 8, 2022
1 parent de4c779 commit fc741d5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
4 changes: 1 addition & 3 deletions core/dbt/context/providers.py
Expand Up @@ -27,9 +27,7 @@
from .macros import MacroNamespaceBuilder, MacroNamespace
from .manifest import ManifestContext
from dbt.contracts.connection import AdapterResponse
from dbt.contracts.graph.manifest import (
Manifest, Disabled
)
from dbt.contracts.graph.manifest import Manifest, Disabled
from dbt.contracts.graph.compiled import (
CompiledResource,
CompiledSeedNode,
Expand Down
9 changes: 3 additions & 6 deletions core/dbt/parser/base.py
Expand Up @@ -130,16 +130,13 @@ def __init__(
super().__init__(project, manifest, root_project)

self._update_node_database = RelationUpdate(
manifest=manifest, config=root_project,
component='database'
manifest=manifest, config=root_project, component="database"
)
self._update_node_schema = RelationUpdate(
manifest=manifest, config=root_project,
component='schema'
manifest=manifest, config=root_project, component="schema"
)
self._update_node_alias = RelationUpdate(
manifest=manifest, config=root_project,
component='alias'
manifest=manifest, config=root_project, component="alias"
)

@abc.abstractclassmethod
Expand Down
4 changes: 1 addition & 3 deletions core/dbt/parser/schemas.py
Expand Up @@ -185,9 +185,7 @@ def __init__(
)
internal_package_names = get_adapter_package_names(self.root_project.credentials.type)
self.macro_resolver = MacroResolver(
self.manifest.macros,
self.root_project.project_name,
internal_package_names
self.manifest.macros, self.root_project.project_name, internal_package_names
)

@classmethod
Expand Down
4 changes: 1 addition & 3 deletions core/dbt/task/parse.py
Expand Up @@ -8,9 +8,7 @@
# snakeviz dbt.cprof
from dbt.task.base import ConfiguredTask
from dbt.adapters.factory import get_adapter
from dbt.parser.manifest import (
Manifest, ManifestLoader, _check_manifest
)
from dbt.parser.manifest import Manifest, ManifestLoader, _check_manifest
from dbt.logger import DbtProcessState
from dbt.clients.system import write_file
from dbt.events.types import (
Expand Down

0 comments on commit fc741d5

Please sign in to comment.