Skip to content

Commit

Permalink
[Chore] Fix unit-test failed by dbt-core 1.6.2
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Huang <[email protected]>
  • Loading branch information
kentwelcome authored and wcchang1115 committed Sep 12, 2023
1 parent e6ccc5d commit 3c695dd
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions piperider_cli/dbt/list_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def truncate_relation(self, relation: BaseRelation) -> None:
pass

def rename_relation(
self, from_relation: BaseRelation, to_relation: BaseRelation
self, from_relation: BaseRelation, to_relation: BaseRelation
) -> None:
pass

Expand All @@ -168,7 +168,7 @@ def expand_column_types(self, goal: BaseRelation, current: BaseRelation) -> None
pass

def list_relations_without_caching(
self, schema_relation: BaseRelation
self, schema_relation: BaseRelation
) -> List[BaseRelation]:
pass

Expand Down Expand Up @@ -348,6 +348,7 @@ def __init__(self):
"project_env_vars": {},
"cli_vars": {},
"dependencies": None,
"dbt_cloud": None,
}

found_restrict_access = any(field.name == 'restrict_access' for field in fields(RuntimeConfig))
Expand Down Expand Up @@ -473,9 +474,9 @@ def list_resources_data_from_manifest(manifest: Manifest, select: tuple = None,


def compare_models_between_manifests(
base_manifest: Manifest,
altered_manifest: Manifest,
include_downstream: bool = False,
base_manifest: Manifest,
altered_manifest: Manifest,
include_downstream: bool = False,
):
task = _DbtListTask()
task.manifest = altered_manifest
Expand Down Expand Up @@ -516,8 +517,8 @@ def compare_models_between_manifests(


def list_modified_with_downstream(
base_manifest: Manifest,
altered_manifest: Manifest,
base_manifest: Manifest,
altered_manifest: Manifest,
):
task = _DbtListTask()
task.manifest = altered_manifest
Expand Down Expand Up @@ -555,8 +556,8 @@ def list_modified_with_downstream(


def list_changes_in_unique_id(
base_manifest: Manifest,
target_manifest: Manifest, show_modified_only=False) -> List[Dict[str, str]]:
base_manifest: Manifest,
target_manifest: Manifest, show_modified_only=False) -> List[Dict[str, str]]:
task = _DbtListTask()
task.manifest = target_manifest

Expand Down

0 comments on commit 3c695dd

Please sign in to comment.