Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DbtRunOperationLocalOperator missing flags (#529)
@jensenity reported an issue in Slack related to Cosmos 1.1: https://apache-airflow.slack.com/archives/C059CC42E9W/p1694488079896779 "for some reason, the the dbtrunoperation operator doesn’t use the cmd_flags….. it didnt have the --args flags when i look into my logs." ``` DbtRunOperationOperator( task_id="run_operation", macro_name="stage_external_sources", args=dict(select='source_a'), profile_config=profile_config, project_dir=DBT_PROJECT_PATH, install_deps=True, env={ … }, dbt_executable_path=DBT_EXECUTION_PATH, queue="kubernetes", ) ``` This PR adds tests to all local operators to confirm if they are being executed with flags or not to avoid regressions. It increases the project test coverage from 91.80% to 92.33%. As a bonus, this PR also enables the `--full-refresh` flag when running dbt models, as requested by Monideep De in the Slack channel: https://apache-airflow.slack.com/archives/C059CC42E9W/p1694523446939829 This change makes sense since this flag is supported both in Seeds and Models (https://docs.getdbt.com/reference/resource-configs/full_refresh), but we only exposed it in Seeds.
- Loading branch information