-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix using the
full_refresh
argument in projects that contain tests
Stop forwarding the `full_refresh` argument to dbt commands that do not support it. Before this change, if users attempted to use: ``` operator_args={"full_refresh": True}, ``` In dbt projects with nodes and other resources that do not support the `--full-refresh` flag, the `DbtTaskGroup` or `DbtDag` would fail, causing: ``` airflow.exceptions.AirflowException: Invalid arguments were passed to DbtTestLocalOperator (task_id: test). Invalid arguments were: **kwargs: {'full_refresh': True} ``` This issue was originally reported in Slack: https://apache-airflow.slack.com/archives/C059CC42E9W/p1696857998959909 Closes: #589 Co-authored-by: Tatiana Al-Chueyr <[email protected]>
- Loading branch information
1 parent
e80abd7
commit a426dd2
Showing
3 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters