You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have models and snapshots in my dbt sub-project. I tagged the models in dbt_project.yml, but not the snapshots. When running the build using the --select switch and tags, for example:
dbt_wrapper run-all investment --select "tag:investment"
The build correctly creates "model" notebooks and skips the snapshots notebook. However, it generates master_investment_notebook_(NN) incorrectly. For example, master_investment_notebook_1 will have a blank list of notebooks to run, as shown in the Function section:
notebook_files1 = [] # type: ignore
run_order1 = 1 # type: ignore
# Define a function to execute a notebook and return the results
@dataclass
To Reproduce
Steps to reproduce the behavior:
Create a sub-project. the sub-project should have models and snapshots. Let's assume that sub-project name is "investment"
tag models only in dbt_project.yml, use tag "investment"
run the build using tags: dbt_wrapper run-all statestreet --select "tag:statestreet"
Check the output (target folder). one of the master_investment_notebook_s will have blank list of notebooks to run
Expected behavior
The dbt should build the DAG correctly and skip snapshots as they are not tagged.
Screenshots
The text was updated successfully, but these errors were encountered:
Scenario:
I have models and snapshots in my dbt sub-project. I tagged the models in dbt_project.yml, but not the snapshots. When running the build using the --select switch and tags, for example:
dbt_wrapper run-all investment --select "tag:investment"
The build correctly creates "model" notebooks and skips the snapshots notebook. However, it generates master_investment_notebook_(NN) incorrectly. For example, master_investment_notebook_1 will have a blank list of notebooks to run, as shown in the Function section:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The dbt should build the DAG correctly and skip snapshots as they are not tagged.
Screenshots
The text was updated successfully, but these errors were encountered: