Vamsi-klu commented on code in PR #71999:
URL: https://github.com/apache/airflow/pull/71999#discussion_r3845269092


##########
task-sdk/src/airflow/sdk/definitions/asset/metadata.py:
##########
@@ -31,8 +31,15 @@
 
 @attrs.define(init=True)
 class Metadata:
-    """Metadata to attach to an AssetEvent."""
+    """
+    Metadata to attach to an AssetEvent.
+
+    ``extra`` is a JSON-serializable mapping merged onto the outlet event.
+    ``partition_key`` is an optional identity for partitioned consumers; it is
+    not inferred from ``extra``.
+    """
 
     asset: Asset
     extra: dict[str, JsonValue] = attrs.field(factory=dict)
     alias: AssetAlias | None = None
+    partition_key: str | None = None

Review Comment:
   A single key still works as `partition_keys="us"`.



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