uranusjr commented on code in PR #40868:
URL: https://github.com/apache/airflow/pull/40868#discussion_r1687821599
##########
airflow/datasets/__init__.py:
##########
@@ -314,6 +361,38 @@ def as_expression(self) -> Any:
"""
return {"alias": self.name}
+ def iter_dag_dependencies(self, *, source: str = "", target: str = "") ->
Iterator[DagDependency]:
+ """
+ Iterate a dataset alias and its resolved datasets as dag dependency.
+
+ :meta private:
+ """
+ if self.objects:
+ for obj in self.objects:
+ dataset = cast(Dataset, obj)
Review Comment:
I don’t think this is right? We can have nesting conditions, in those cases
`obj` would not be a Dataset.
--
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]