Lee-W commented on code in PR #40693:
URL: https://github.com/apache/airflow/pull/40693#discussion_r1677349681


##########
airflow/datasets/__init__.py:
##########
@@ -179,6 +183,34 @@ def __eq__(self, other: Any) -> bool:
     def __hash__(self) -> int:
         return hash(self.name)
 
+    def as_expression(self) -> Any:
+        """
+        Serialize the dataset into its scheduling expression.
+
+        :meta private:
+        """
+        return {"any": [o.as_expression() for o in self.expand_datasets()]}

Review Comment:
   I thought it's used for scheduling as well 🤔 If that's the case, yes 
`{"alias": self.name}` makes more sense



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