ashb commented on a change in pull request #20743:
URL: https://github.com/apache/airflow/pull/20743#discussion_r786197515
##########
File path: airflow/serialization/serialized_objects.py
##########
@@ -658,7 +694,8 @@ def deserialize_operator(cls, encoded_op: Dict[str, Any])
-> BaseOperator:
setattr(op, k, v)
for k in op.get_serialized_fields() - encoded_op.keys() -
cls._CONSTRUCTOR_PARAMS.keys():
- setattr(op, k, None)
+ if not hasattr(op, k):
Review comment:
```suggestion
# TODO: refactor deserializing and split BaseOperator and
MappedOperaotr, then check could go away.
if not hasattr(op, k):
```
--
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]