kacpermuda commented on code in PR #55573:
URL: https://github.com/apache/airflow/pull/55573#discussion_r2368376243


##########
providers/google/src/airflow/providers/google/cloud/operators/datafusion.py:
##########
@@ -863,6 +867,34 @@ def execute_complete(self, context: Context, event: 
dict[str, Any]):
         )
         return event["pipeline_id"]
 
+    def get_openlineage_facets_on_complete(self, task_instance) -> 
OperatorLineage | None:
+        """Build and return OpenLineage facets and datasets for the completed 
pipeline start."""
+        from airflow.providers.common.compat.openlineage.facet import Dataset
+        from airflow.providers.google.cloud.openlineage.facets import 
DataFusionRunFacet
+        from airflow.providers.openlineage.extractors import OperatorLineage
+
+        pipeline_resource = (
+            f"projects/{self.project_id}/locations/{self.location}/instances/"
+            f"{self.instance_name}/pipelines/{self.pipeline_name}"
+        )
+
+        inputs = [Dataset(namespace="datafusion", name=pipeline_resource)]

Review Comment:
   Is this the right split between name and namespace? Not sure how Google data 
Fusion works underneath, but if it has some instances then maybe it should be 
something like:
   
name=`datafusion://projects/{self.project_id}/locations/{self.location}/instances/{self.instance_name}`
   namespace=`pipelines/{self.pipeline_name}`
   ?



##########
providers/google/tests/unit/google/common/auth_backend/test_google_openid.py:
##########
@@ -23,6 +23,7 @@
 
 # Do not run the tests when FAB / Flask is not installed
 pytest.importorskip("flask_session")
+pytest.importorskip("flask_limiter")

Review Comment:
   This seems unrelated to the PR, why is that added?



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to