dabla commented on code in PR #56973:
URL: https://github.com/apache/airflow/pull/56973#discussion_r2808734206
##########
airflow-core/src/airflow/serialization/serialized_objects.py:
##########
@@ -1587,6 +1587,11 @@ def _deserialize_field_value(cls, field_name: str,
value: Any) -> Any:
elif field_name == "resources":
return Resources.from_dict(value) if value is not None else None
elif field_name.endswith("_date"):
+ # Check if value is ARG_NOT_SET before trying to deserialize as
datetime
+ if isinstance(value, dict) and value.get(Encoding.TYPE) ==
DAT.ARG_NOT_SET:
+ from airflow.serialization.definitions.notset import NOTSET
+
+ return NOTSET
Review Comment:
Should this not return None instead? Not sure though?
--
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]