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

[Bug] PR-55 Fix option --dbt-list doesn't work issue #933

Merged
Merged
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: 4 additions & 2 deletions piperider_cli/dbtutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
from jinja2 import UndefinedError
from rich.console import Console
from rich.table import Table
from piperider_cli import yaml as pyml

from piperider_cli import load_jinja_template, load_jinja_string_template
from piperider_cli import yaml as pyml
from piperider_cli.dbt.list_task import load_manifest, list_resources_unique_id_from_manifest, load_full_manifest
from piperider_cli.error import \
DbtProjectInvalidError, \
Expand Down Expand Up @@ -185,7 +185,9 @@ def get_dbt_state_candidate(dbt_state_dir: str, options: dict, *, select_for_met
def profiling_chosen_fn(key, node):
statistics = Statistics()
if dbt_resources:
chosen = node.get('unique_id') in dbt_resources['models']
fqn = '.'.join(node.get('fqn'))
unique_id = node.get('unique_id')
chosen = unique_id in dbt_resources['models'] or fqn in dbt_resources['models']
if not chosen:
statistics.add_field_one('filter')
return chosen
Expand Down
Loading