Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.4.3 #1035

Merged
merged 4 commits into from
Jun 7, 2024
Merged

Release 1.4.3 #1035

merged 4 commits into from
Jun 7, 2024

Conversation

pankajkoti
Copy link
Contributor

Bug fixes

Enhancements

Docs

tatiana and others added 4 commits June 7, 2024 18:59
As of Cosmos 1.4, Cosmos will attempt to run dbt deps even if there are
no `dependencies.yml` or `packages.yml` in the dbt project directory.
This causes an unnecessary overhead in creating subprocesses without any
benefit.

This problem was initially spotted by @AlgirdasDubickas, who created a
pull request proposing a solution to the problem:
#893

Despite the original PR becoming stale, the problem it addresses remains
relevant.

This PR proposes a different implementation to solve the same problem.
It addresses the issue from a rendering perspective (converting a dbt
project into an Airflow DAG using `LoadMode.DBT_LS`) and an execution
perspective (when Airflow worker nodes run/trigger dbt commands to be
run when using `ExecutionMode.LOCAL` or `ExecutionMode.VIRTUALENV`).

Co-authored-by: AlgirdasDubickas <[email protected]>
(cherry picked from commit 3a63bee)
In PR #1017, we attempted to remove `dataset` from the required fields
list for the BigQuery profile. However, we realised that this is failing
BiqQuery dbt operations as it indeed is a required field. Hence, bring
back the same as a required field. This is also necessary for building
the mock profile where we construct the profile by taking in
consideration only the required fields.

Closes: #1031
(cherry picked from commit 803776a)
[The
documentation](https://astronomer.github.io/astronomer-cosmos/configuration/scheduling.html)
was outdated.

The method `get_dbt_dataset` no longer exists. It used to exist in older
versions of Cosmos (before 1.1) when the URIs respected the format:

`Dataset(f"DBT://{connection_id.upper()}/{project_name.upper()}/{model_name.upper()}")`

More information on why we changed this:
#305

Closes: #1032
(cherry picked from commit c47e104)
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 7, 2024
Copy link

netlify bot commented Jun 7, 2024

Deploy Preview for sunny-pastelito-5ecb04 canceled.

Name Link
🔨 Latest commit a9c2dba
🔍 Latest deploy log https://app.netlify.com/sites/sunny-pastelito-5ecb04/deploys/66630d7a58475c0008cd574b

Copy link
Collaborator

@tatiana tatiana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks a lot, @pankajkoti !

@dosubot dosubot bot added lgtm This PR has been approved by a maintainer area:docs Relating to documentation, changes, fixes, improvement area:performance Related to performance, like memory usage, CPU usage, speed, etc area:profile Related to ProfileConfig, like Athena, BigQuery, Clickhouse, Spark, Trino, etc dbt:deps Primarily related to dbt deps command or functionality execution:local Related to Local execution environment profile:bigquery Related to BigQuery ProfileConfig labels Jun 7, 2024
@pankajkoti pankajkoti merged commit c0c033d into main Jun 7, 2024
64 checks passed
@pankajkoti pankajkoti deleted the release-1.4.3 branch June 7, 2024 13:56
arojasb3 pushed a commit to arojasb3/astronomer-cosmos that referenced this pull request Jul 14, 2024
Bug fixes

* Bring back ``dataset`` as a required field for BigQuery profile by
@pankajkoti in astronomer#1033

Enhancements

* Only run ``dbt deps`` when there are dependencies by @tatiana in astronomer#1030

Docs

* Fix docs so it does not reference non-existing ``get_dbt_dataset`` by
@tatiana in astronomer#1034

---------

Co-authored-by: Tatiana Al-Chueyr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:docs Relating to documentation, changes, fixes, improvement area:performance Related to performance, like memory usage, CPU usage, speed, etc area:profile Related to ProfileConfig, like Athena, BigQuery, Clickhouse, Spark, Trino, etc dbt:deps Primarily related to dbt deps command or functionality execution:local Related to Local execution environment lgtm This PR has been approved by a maintainer profile:bigquery Related to BigQuery ProfileConfig size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants