JDarDagran commented on code in PR #39530:
URL: https://github.com/apache/airflow/pull/39530#discussion_r1686583461
##########
tests/providers/dbt/cloud/utils/test_openlineage.py:
##########
@@ -42,18 +44,12 @@ def json(self):
def emit_event(event):
- run_id = TASK_UUID
- name = f"{DAG_ID}.{TASK_ID}"
- run_obj = event.run.facets["parent"].run
- job_obj = event.run.facets["parent"].job
- if isinstance(run_obj, dict):
- assert run_obj["runId"] == run_id
+ if parse(__version__) >= parse("1.15.0"):
Review Comment:
Added the comment.
##########
tests/providers/google/cloud/transfers/test_bigquery_to_gcs.py:
##########
@@ -23,20 +23,20 @@
import pytest
from google.cloud.bigquery.retry import DEFAULT_RETRY
from google.cloud.bigquery.table import Table
-from openlineage.client.facet import (
+
+from airflow.exceptions import TaskDeferred
+from airflow.providers.common.compat.openlineage.facet import (
ColumnLineageDatasetFacet,
- ColumnLineageDatasetFacetFieldsAdditional,
- ColumnLineageDatasetFacetFieldsAdditionalInputFields,
+ Dataset,
DocumentationDatasetFacet,
ExternalQueryRunFacet,
+ Fields,
+ Identifier,
+ InputField,
SchemaDatasetFacet,
- SchemaField,
+ SchemaDatasetFacetFields,
SymlinksDatasetFacet,
- SymlinksDatasetFacetIdentifiers,
)
-from openlineage.client.run import Dataset
Review Comment:
Sure, will add it.
--
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]