The GitHub Actions job "Tests (AMD)" on 
airflow.git/fix-arg-not-set-deserialization-date-fields has succeeded.
Run started by GitHub user hwang-cadent (triggered by hwang-cadent).

Head commit for run:
e1d1f5a0547082914f6daac83f0fcfa9ce73772e / hwang-cadent <[email protected]>
Fix ARG_NOT_SET deserialization for ``_date`` fields

``OperatorSerialization._deserialize_field_value`` previously sent every
``*_date`` field to ``_deserialize_datetime`` unconditionally. When an
operator stores a date-suffixed field as ``NOTSET`` (an ``ArgNotSet``
sentinel meaning "use the default at runtime") the value is encoded as
``{__type: ARG_NOT_SET}``. Passing that encoded value to
``_deserialize_datetime`` fails because it is not a datetime payload, so
deserializing such an operator (e.g. ``TriggerDagRunOperator`` whose
``logical_date`` defaults to ``NOTSET``) raised an error.

This change short-circuits ARG_NOT_SET on date fields and restores the
``NOTSET`` singleton, leaving ``None`` and real datetimes unchanged.

Adds a direct unit test in ``test_serialized_objects.py`` covering
``logical_date``, ``start_date`` and ``end_date``.

Report URL: https://github.com/apache/airflow/actions/runs/25578615123

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to