uranusjr commented on code in PR #44639:
URL: https://github.com/apache/airflow/pull/44639#discussion_r1875678174


##########
airflow/utils/operator_helpers.py:
##########
@@ -276,10 +277,14 @@ def _run():
 
             for metadata in _run():
                 if isinstance(metadata, Metadata):
-                    outlet_events[metadata.uri].extra.update(metadata.extra)
+                    # TODO: handle asset name
+                    
outlet_events[Asset(uri=metadata.uri)].extra.update(metadata.extra)
 
                     if metadata.alias_name:
-                        outlet_events[metadata.alias_name].add(metadata.uri, 
extra=metadata.extra)
+                        # TODO: handle asset name
+                        
outlet_events[AssetAlias(name=metadata.alias_name)].add(
+                            Asset(uri=metadata.uri), extra=metadata.extra
+                        )

Review Comment:
   Let’s deprecate passing in a URI to Metadata in 2.11 and require an Asset 
there as well.



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