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

Allow users to opt-out dbtRunner during DAG parsing #1495

Merged
merged 7 commits into from
Jan 29, 2025

Conversation

tatiana
Copy link
Collaborator

@tatiana tatiana commented Jan 28, 2025

While speaking to a customer about #1484, they mentioned they have the following setup:

  • dbt-databricks installed in the same Python virtualenv as Cosmos/Airflow
  • dbt-bigquery installed in a separate Python virtualenv using Astro Dockerfile

And run DAGs using both with the same image. This means 1.9.0a3 breaks them since they use LoadMode.DBT_LS and only debt-data bricks can be parsed. This means that we have to add support to allow users to opt-in / out of using the dbtRunner during DAG parsing - similar to what was done for task execution, in ExecutionConfig.

@tatiana tatiana changed the title Allow users to opt-out dbtRunner during DAG parsing Allow users to opt-out dbtRunner during DAG parsing Jan 28, 2025
Copy link

netlify bot commented Jan 28, 2025

Deploy Preview for sunny-pastelito-5ecb04 ready!

Name Link
🔨 Latest commit 699db27
🔍 Latest deploy log https://app.netlify.com/sites/sunny-pastelito-5ecb04/deploys/679a23995e8381000887c716
😎 Deploy Preview https://deploy-preview-1495--sunny-pastelito-5ecb04.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

cloudflare-workers-and-pages bot commented Jan 28, 2025

Deploying astronomer-cosmos with  Cloudflare Pages  Cloudflare Pages

Latest commit: 699db27
Status: ✅  Deploy successful!
Preview URL: https://bb12c50c.astronomer-cosmos.pages.dev
Branch Preview URL: https://opt-out-dbtrunner-in-dbt-ls.astronomer-cosmos.pages.dev

View logs

@tatiana tatiana added the customer request An Astronomer customer made requested this label Jan 28, 2025
@tatiana tatiana marked this pull request as ready for review January 28, 2025 23:00
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. area:parsing Related to parsing DAG/DBT improvement, issues, or fixes dbt:parse Primarily related to dbt parse command or functionality parsing:dbt_ls Issues, questions, or features related to dbt_ls parsing labels Jan 28, 2025
@tatiana tatiana self-assigned this Jan 28, 2025
Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.05%. Comparing base (e11e5ae) to head (699db27).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1495   +/-   ##
=======================================
  Coverage   97.05%   97.05%           
=======================================
  Files          77       77           
  Lines        4483     4484    +1     
=======================================
+ Hits         4351     4352    +1     
  Misses        132      132           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tatiana tatiana added this to the Cosmos 1.9.0 milestone Jan 28, 2025
Copy link
Contributor

@pankajkoti pankajkoti left a comment

Choose a reason for hiding this comment

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

LGTM.

I guess would be nice to highlight in our documentation somewhere that starting Cosmos 1.9, we're optimising to use dbtRunner by default for parsing and also show them how they can change the default with the corresponding param in their DAG. WDYT?

cosmos/config.py Show resolved Hide resolved
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jan 29, 2025
@tatiana
Copy link
Collaborator Author

tatiana commented Jan 29, 2025

Thanks for the feedback, @pankajastro & @pankajkoti !

I've added a breaking change notice in the changelog: 14b0a2c

As well as docs in 53429d9

@tatiana tatiana merged commit c4e4abc into main Jan 29, 2025
65 of 66 checks passed
@tatiana tatiana deleted the opt-out-dbtrunner-in-dbt-ls branch January 29, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:parsing Related to parsing DAG/DBT improvement, issues, or fixes customer request An Astronomer customer made requested this dbt:parse Primarily related to dbt parse command or functionality parsing:dbt_ls Issues, questions, or features related to dbt_ls parsing size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants