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

Bumpup dbt-bigquery 1.8 #69

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 3 additions & 2 deletions dbt_dry_run/adapter/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
from typing import Any, Dict, Optional

from dbt.adapters.base import BaseAdapter
from dbt.adapters.contracts.connection import Connection
from dbt.adapters.factory import get_adapter, register_adapter, reset_adapters
from dbt.config import RuntimeConfig
from dbt.contracts.connection import Connection
from dbt.flags import set_from_args
from dbt.mp_context import get_mp_context

from dbt_dry_run.adapter.utils import default_profiles_dir
from dbt_dry_run.models import Manifest
Expand Down Expand Up @@ -41,7 +42,7 @@ def __init__(self, args: DbtArgs):
self._profile = dbt_profile
self._config = RuntimeConfig.from_parts(dbt_project, dbt_profile, self._args)
reset_adapters()
register_adapter(self._config)
register_adapter(self._config, get_mp_context())
self._adapter = get_adapter(self._config)

def get_connection(self) -> Connection:
Expand Down
Loading
Loading