uranusjr commented on code in PR #40693:
URL: https://github.com/apache/airflow/pull/40693#discussion_r1677348513
##########
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 wonder if this should just be `{"alias": self.name}`. This is only used
for the UI, and I kind of suspect people want to know the alias name more than
what datasets it’s expanded into.
--
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]