Skip to content

Commit

Permalink
Fix bug causing select and exclude filter issues (#410)
Browse files Browse the repository at this point in the history
## Description
When `load_method` was set to `LoadMode.CUSTOM`, any `select/exclude`
parameters were ineffective. This is because the entire node list was
being passed to the `build_airflow_graph` method instead of a filtered
list of nodes.

## Related Issue(s)
closes #409 

## Breaking Change?
No breaking changes with this change

## Checklist

- [x] I have made corresponding changes to the documentation (if
required)
- [ ] I have added tests that prove my fix is effective or that my
feature works
  • Loading branch information
chrishronek authored Jul 27, 2023
1 parent 22e66f3 commit 1828b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmos/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def __init__(
validate_arguments(select, exclude, profile_args, task_args)

build_airflow_graph(
nodes=dbt_graph.nodes,
nodes=dbt_graph.filtered_nodes,
dag=dag or (task_group and task_group.dag),
task_group=task_group,
execution_mode=execution_mode,
Expand Down

0 comments on commit 1828b65

Please sign in to comment.