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


##########
airflow/providers/openlineage/extractors/manager.py:
##########
@@ -113,6 +115,10 @@ def extract_metadata(self, dagrun, task, complete: bool = 
False, task_instance=N
                 self.log.warning(
                     "Failed to extract metadata using found extractor %s - %s 
%s", extractor, e, task_info
                 )
+        elif IS_AIRFLOW_2_10_OR_HIGHER and (hook_lineage := 
self.get_hook_lineage()) is not None:
+            inputs, outputs = hook_lineage
+            task_metadata = OperatorLineage(inputs=inputs, outputs=outputs)
+            return task_metadata

Review Comment:
   Shouldn't we also try to use hook-level lineage's inputs and outputs when 
there is an extractor but inputs/outputs are missing, before we move to inlets 
and outlets there?



-- 
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]

Reply via email to