command-z-z opened a new issue, #29414:
URL: https://github.com/apache/airflow/issues/29414
### Apache Airflow version
Other Airflow 2 version (please specify below)
### What happened
When I execute any sql on select statement. I got this error.
i test this in mysql and postgres, both this error happened.
airflow version 2.5.0
apache-airflow-providers-mysql 4.0.0
apache-airflow-providers-postgres 5.4.0
Traceback (most recent call last):
File
"/miniconda3/envs/airflow/lib/python3.8/site-packages/airflow/utils/session.py",
line 72, in wrapper
return func(*args, **kwargs)
File
"/miniconda3/envs/airflow/lib/python3.8/site-packages/airflow/models/taskinstance.py",
line 2294, in xcom_push
XCom.set(
File
"/miniconda3/envs/airflow/lib/python3.8/site-packages/airflow/utils/session.py",
line 72, in wrapper
return func(*args, **kwargs)
File
"/miniconda3/envs/airflow/lib/python3.8/site-packages/airflow/models/xcom.py",
line 234, in set
value = cls.serialize_value(
File
"/miniconda3/envs/airflow/lib/python3.8/site-packages/airflow/models/xcom.py",
line 627, in serialize_value
return json.dumps(value, cls=XComEncoder).encode("UTF-8")
File "/miniconda3/envs/airflow/lib/python3.8/json/__init__.py", line 234,
in dumps
return cls(
File
"/miniconda3/envs/airflow/lib/python3.8/site-packages/airflow/utils/json.py",
line 176, in encode
return super().encode(o)
File "/miniconda3/envs/airflow/lib/python3.8/json/encoder.py", line 199,
in encode
chunks = self.iterencode(o, _one_shot=True)
File "/miniconda3/envs/airflow/lib/python3.8/json/encoder.py", line 257,
in iterencode
return _iterencode(o, 0)
File
"/miniconda3/envs/airflow/lib/python3.8/site-packages/airflow/utils/json.py",
line 153, in default
CLASSNAME: o.__module__ + "." + o.__class__.__qualname__,
AttributeError: 'datetime.date' object has no attribute '__module__'
### What you think should happen instead
i dont have free time to see source code.
Can you help me to solve?
### How to reproduce
i run the dag code as following:
code in
`https://github.com/apache/airflow/blob/providers-postgres/5.4.0/tests/system/providers/postgres/example_postgres.py`
### Operating System
"Ubuntu"
### Versions of Apache Airflow Providers
airflow version 2.5.0
apache-airflow-providers-mysql 4.0.0
apache-airflow-providers-postgres 5.4.0
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### Anything else
nothing
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]