-
Notifications
You must be signed in to change notification settings - Fork 296
Add experimental support to dbt Fusion #1803
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
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
1071773
Overcome run --models limitation
tatiana 8951684
Fix parsing dbt ls from dbtf
tatiana 0bc9c3a
Enforce dbt ls output_keys for dbtf
tatiana 01be462
Try to fix running seeds with dbtf
tatiana 331d7e8
Add comments on dbtf-related changes
tatiana f4408f9
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] 2b77b2a
Fix dbtf support after rebase
tatiana 2660751
Fix build node selector in unittests
tatiana ad99015
Improve dbtf change docstrings
tatiana d78ed09
Fix performance tests
tatiana 8496ea3
Fix some integration tests
tatiana 2e04a63
Fix last broken int tests
tatiana e502373
Fix last issues due to mutable object
tatiana ff91300
Merge branch 'main' into dbtf
tatiana 7d12644
Update cosmos/dbt/graph.py
tatiana f95ae18
Release 1.11.0a1
tatiana fc58abd
Add dbt Fusion Cosmos DAG
tatiana 92ee824
Fix unittest
tatiana da5252a
Fix the CI
tatiana 32317cd
Reduce fusion test matrix
tatiana f7a501a
Merge branch 'main' into dbtf
tatiana 43d41df
Expose env vars
tatiana ff26bac
Apply code review feedback
tatiana 55f6be0
Add test for DbtGraph.run_dbt_ls to cover changes
tatiana 1d25b8e
Try to fix
tatiana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -v | ||
| set -x | ||
| set -e | ||
|
|
||
| DBT_VERSION="$1" | ||
| NEXT_MINOR_VERSION=$(echo "$DBT_VERSION" | awk -F. '{print $1"."$2+1}') | ||
|
|
||
| # we install using the following workaround to overcome installation conflicts, such as: | ||
| # apache-airflow 2.3.0 and dbt-core [0.13.0 - 1.5.2] and jinja2>=3.0.0 because these package versions have conflicting dependencies | ||
| pip uninstall -y 'dbt-bigquery' 'dbt-databricks' 'dbt-duckdb' 'dbt-postgres' 'dbt-vertica' 'dbt-core' | ||
| rm -rf airflow.* | ||
| pip freeze | grep airflow | ||
| airflow db reset -y | ||
|
|
||
| AIRFLOW_VERSION=$(airflow version) | ||
| AIRFLOW_MAJOR_VERSION=$(echo "$AIRFLOW_VERSION" | cut -d. -f1) | ||
| if [ "$AIRFLOW_MAJOR_VERSION" -ge 3 ]; then | ||
| uv pip install cadwyn!=5.4.0 | ||
| echo "Detected Airflow $AIRFLOW_VERSION. Running 'airflow db migrate'..." | ||
| airflow db migrate | ||
| else | ||
| echo "Detected Airflow $AIRFLOW_VERSION. Running 'airflow db init'..." | ||
| airflow db init | ||
| fi | ||
|
|
||
| uv pip freeze |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -x | ||
| set -e | ||
| set -v | ||
|
|
||
| export SOURCE_RENDERING_BEHAVIOR=all | ||
| pip freeze | grep airflow | ||
| echo $AIRFLOW_HOME | ||
| ls $AIRFLOW_HOME | ||
| airflow db check | ||
| rm -rf dbt/jaffle_shop/dbt_packages; | ||
|
|
||
|
|
||
| # Note: the dbt Fusion Engine is in Beta! Bugs and missing functionality compared to dbt Core will be resolved | ||
| # continuously in the lead-up to a final release (see more details in https://github.com/dbt-labs/dbt-fusion) | ||
|
|
||
| # Install dbt fusion (2.0.0-beta.26 on 23 June 2025) | ||
| curl -fsSL https://public.cdn.getdbt.com/fs/install/install.sh | sh -s -- --update | ||
|
|
||
| pytest -vv \ | ||
| tests/test_dbtf.py \ | ||
| --cov=cosmos \ | ||
| --cov-report=term-missing \ | ||
| --cov-report=xml \ | ||
| --durations=0 |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.