Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking changes
LoadMode.DBT_LS
, Cosmos will now attempt to use thedbtRunner
as opposed to subprocess to rundbt ls
.While this represents significant performance improvements (half the vCPU usage and some memory consumption improvement), this may not work in
scenarios where users had multiple Python virtual environments to manage different versions of dbt and its adaptors. In those cases,
please, set
RenderConfig(invocation_mode=InvocationMode.SUBPROCESS)
to have the same behaviour Cosmos had in previous versions.Additional information
here <https://astronomer.github.io/astronomer-cosmos/configuration/parsing-methods.html#dbt-ls>
_ andhere <https://astronomer.github.io/astronomer-cosmos/configuration/render-config.html#how-to-run-dbt-ls-invocation-mode>
_.Features
dbtRunner
in the DAG Processor when usingLoadMode.DBT_LS
ifdbt-core
is available by @tatiana in UsedbtRunner
in the DAG Processor when usingLoadMode.DBT_LS
ifdbt-core
is available #1484. Additional informationhere <https://astronomer.github.io/astronomer-cosmos/configuration/parsing-methods.html#dbt-ls>
_.dbtRunner
during DAG parsing withInvocationMode.SUBPROCESS
by @tatiana in Allow users to opt-outdbtRunner
during DAG parsing #1495. Check out thedocumentation <https://astronomer.github.io/astronomer-cosmos/configuration/render-config.html#how-to-run-dbt-ls-invocation-mode>
_.profile_config
per dbt node or folder using config by @tatiana in Support overriding theprofile_config
per dbt node or folder using config #1492. More informationhere <https://astronomer.github.io/astronomer-cosmos/profiles/#profile-customise-per-node>
_.ExecutionMode.AIRFLOW_ASYNC
by @pankajkoti, @tatiana and @pankajastro in Create and run accurate SQL statements when usingExecutionMode.AIRFLOW_ASYNC
#1474DbtSourceOperator
individually by @victormacaubas in Add Support for Running DbtSourceOperator Individually #1510Bug Fixes
Enhancement
DbtRunner
related functions intodbt/runner.py
module by @tatiana in MoveDbtRunner
related functions intodbt/runner.py
module #1480on_warning_callback
toDbtSourceKubernetesOperator
and refactor previous operators by @LuigiCerone in Addon_warning_callback
toDbtSourceKubernetesOperator
and refactor previous operators #1501RenderConfig.dbt_deps
andoperator_args
install_deps
by @tatiana in Gracefully error when users set imcompatibleRenderConfig.dbt_deps
andoperator_args
install_deps
#1505ExecutionMode.AIRFLOW_ASYNC
by @pankajkoti in Store compiled SQL as template field for ExecutionMode.AIRFLOW_ASYNC #1534Docs
RenderConfig
arguments documentation by @tatiana in ImproveRenderConfig
arguments documentation #1514Others