You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/11/10 16:47:23 UTC

[GitHub] [airflow] potiuk commented on issue #19096: Sets in parameters cause "TypeError: Object of type set is not JSON serializable"

potiuk commented on issue #19096:
URL: https://github.com/apache/airflow/issues/19096#issuecomment-965535055


   I have a feeling that it's pendulum.datetime that has the problem (remember our latest discussions):
   
   in serialized objects we have:
   
   ```
         elif isinstance(var, cls._datetime_types):
               return cls._encode(var.timestamp(), type_=DAT.DATETIME)
           elif isinstance(var, datetime.timedelta):
   ```
   
   and in BaseSerialization:
   
   ```
       # Time types.
       # datetime.date and datetime.time are converted to strings.
       _datetime_types = (datetime.datetime,)
   ```


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org