atul-astronomer opened a new issue, #46852: URL: https://github.com/apache/airflow/issues/46852
### Apache Airflow version 3.0.0a1 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? Asset events are not created for subcalsses Model and Dataset <img width="1542" alt="Image" src="https://github.com/user-attachments/assets/a2dba294-e8b4-4b3f-8430-49b990237cca" /> <img width="1226" alt="Image" src="https://github.com/user-attachments/assets/69f7392c-a66e-4835-a5d9-4243e4cfdbd9" /> <img width="1101" alt="Image" src="https://github.com/user-attachments/assets/4b9d6ba0-548a-450c-ab29-feb05b6e0c72" /> ### What you think should happen instead? Asset events should be created for Asset subclasses also. ### How to reproduce Trigger a Dag having Asset defined using Asset, Dataset and Model classes and see asset event is created only for Asset class. ```python from datetime import datetime from airflow.providers.standard.operators.empty import EmptyOperator from airflow.providers.standard.operators.python import BranchPythonOperator from airflow.sdk.definitions.asset import Asset from airflow.decorators import dag from airflow.sdk.definitions.asset import Model from airflow.sdk.definitions.asset import Dataset # these two will have downstream dags left = Asset(name='asset_name') right = Dataset(uri="asset_uri") centre = Model(name="model_asset") @dag(start_date=datetime(1970, 1, 1), schedule=None) def asset_name_uri(): l = EmptyOperator(task_id="left", outlets=[left]) c = EmptyOperator(task_id="center", outlets=[centre]) r = EmptyOperator(task_id="right", outlets=[right]) l >> r >> c asset_name_uri() ``` ### Operating System Linux ### Versions of Apache Airflow Providers _No response_ ### Deployment Other ### Deployment details _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
