tirkarthi commented on issue #49635:
URL: https://github.com/apache/airflow/issues/49635#issuecomment-2824859313

   The serialization is done using `BaseSerialization` that already handles 
`set`. Maybe you can use `set` as a workaround for now and similar logic needs 
to be applied for `frozenset`.
   
   
https://github.com/apache/airflow/blob/cf16f69d0d71370f208ad3e4ab1ba6d1549a936c/airflow-core/src/airflow/models/trigger.py#L121-L160
   
   
https://github.com/apache/airflow/blob/cf16f69d0d71370f208ad3e4ab1ba6d1549a936c/airflow-core/src/airflow/serialization/serialized_objects.py#L779-L790
   
   
   ```python
   python   
   Python 3.11.11 (main, Dec  4 2024, 08:55:08) [GCC 9.4.0] on linux
   Type "help", "copyright", "credits" or "license" for more information.
   >>> from airflow.serialization.serialized_objects import BaseSerialization
   >>> BaseSerialization.serialize(frozenset({"item_1"}))
   "frozenset({'item_1'})"
   >>> BaseSerialization.serialize({"item_1"})
   {<Encoding.VAR: '__var'>: ['item_1'], <Encoding.TYPE: '__type'>: 
<DagAttributeTypes.SET: 'set'>}
   ```


-- 
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]

Reply via email to