bolkedebruin commented on code in PR #27540:
URL: https://github.com/apache/airflow/pull/27540#discussion_r1017893141
##########
airflow/decorators/base.py:
##########
@@ -210,17 +212,27 @@ def __init__(
super().__init__(task_id=task_id, **kwargs_to_upstream, **kwargs)
def execute(self, context: Context):
+ for arg in chain(self.op_args, self.op_kwargs.values()):
+ if isinstance(arg, Dataset):
+ self.inlets.append(arg)
Review Comment:
Are you suggesting that we would make this more generic? It now only affects
the `DecoratedOperator` moving it to prepare_lineage (called from
`pre_execute`) would make it affect all.
--
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]