[Bug] Dataset Events not publishing when AIRFLOW__COSMOS__ENABLE_DATASET_ALIAS enabled #1363
Labels
area:config
Related to configuration, like YAML files, environment variables, or executer configuration
area:datasets
Related to the Airflow datasets feature/module
bug
Something isn't working
triage-needed
Items need to be reviewed / assigned to milestone
Astronomer Cosmos Version
12.1.1
dbt-core version
1.8.7
Versions of dbt adapters
No response
LoadMode
AUTOMATIC
ExecutionMode
AZURE_CONTAINER_INSTANCE
InvocationMode
None
airflow version
2.10.2
Operating System
Astronomer Deployed
If a you think it's an UI issue, what browsers are you seeing the problem on?
No response
Deployment
Astronomer
Deployment details
No response
What happened?
When setting the AIRFLOW__COSMOS__ENABLE_DATASET_ALIAS to True, any task that we have that was previously producing dataset events and was not in a task group, stopped producing the events. I suspect there's something wrong with the following function:
astronomer-cosmos/cosmos/dataset.py
Line 7 in cfb6bf2
Relevant log output
How to reproduce
When AIRFLOW__COSMOS__ENABLE_DATASET_ALIAS is set to true, and when using the DbtRunLocalOperator or DbtSnapshotOperator, dataset events were no longer being published. Dataset events are being published however when using the DbtTaskGroup operator.
All operators successfully published dataset events when AIRFLOW__COSMOS__ENABLE_DATASET_ALIAS was set to False
Anything else :)?
No response
Are you willing to submit PR?
Contact Details
[email protected]
The text was updated successfully, but these errors were encountered: