-
Notifications
You must be signed in to change notification settings - Fork 186
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
Dataset only emit for specific models #1442
Comments
@DanMawdsleyBA I haven't tried this, but it may be possible with Cosmos 1.8., thanks to @wornjs' #1339 contribution: You could try to set
Since this parameter is set at an operator level:
Could you please try it and let us know how it goes? |
I have had a try of this which doesn't seem to work. I also tried setting the emit datasets to false from the operator args:
This doesn't work and still emits the datasests. The only way I have managed to turn them off is within the render_config:
But this will still turn them off for the entire dag. Wonder if this is because of the behavior in converter.py
For the emit_datasets its only using the value defined from the render config |
@DanMawdsleyBA could you try out Cosmos 1.9.0a4 and see if In https://github.com/astronomer/astronomer-cosmos/pull/1492/files#diff-1346b2a26d27ccd0db1837b746c9e188afa4dc499040c9cedf612ad6bc208459R178 I changed how we override the parameters - and this will likely work now. |
Hi @tatiana yeah it seems to work now! I'm using 1.9.0a5 . I'm also getting a lot of extra logging not sure if this expected given its an alpha release? [2025-02-05, 15:14:31 UTC] {connection.py:413} INFO - Snowflake Connector for Python Version: 3.12.1, Python Version: 3.11.9, Platform: Linux-5.10.230-223.885.amzn2.x86_64-x86_64-with-glibc2.34 |
Description
We're looking into leveraging datasets but one problem we're having is the ability to control which models produce datasets. Would it be possible to implement something to be able to control which models produce datasets. Perhaps using a list or regex of models to emit datasets?
Use case/motivation
As part of dbt we use a lot of working tables were we don't want to emit datasets and want to cut down on the number of datasets as the airflow graph can get hard to use.
Related issues
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: