Closed zhyzhkea closed 1 year ago
@zhyzhkea is it possible you use Airflow's Dataset and not Datahub's Dataset in your inlets and outlets? https://github.com/datahub-project/datahub/blob/abf73b2d10b3bc00325c243fa0acaf303cb74310/metadata-ingestion/src/datahub_provider/entities.py#L17 vs https://github.com/apache/airflow/blob/79bcc2e668e648098aad6eaa87fe8823c76bc69a/airflow/datasets/__init__.py#L26
We currently only support the first one.
Unfortunately, Astronomer Cosmos DbtTaskGroup does not allow to specify inlets and outlets. DataHub plugin "acryl-datahub-airflow-plugin" emit events automatically. The dbt model run is successfully emitted and visible in the Lineage graph but dbt test run failed to emit an event [ File "/usr/local/lib/python3.10/site-packages/datahub_provider/_plugin.py", line 163, in datahub_task_status_callback datajob.outlets.append(outlet.urn) ]. Am I missing some configuration?
This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io
This issue was closed because it has been inactive for 30 days since being marked as stale.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior There is no error in the log and Datahub Lineage shows both run and test tasks
Screenshots
DataHub Dataset Lineage does not show an edge from Airflow to dbt:
Desktop (please complete the following information):
Additional context Please guide me in the right direction to resolve this issue. Currently, I'm running "datahub ingest -c ./dbt-recipe.yml" to ingest dbt artifacts. Thanks.