Open dafydds opened 1 year ago
Also encountering this error:
Traceback (most recent call last):
File ".venv/lib/python3.11/site-packages/polars/io/database/_utils.py", line 54, in _read_sql_connectorx
tbl = cx.read_sql(
^^^^^^^^^^^^
File ".venv/lib/python3.11/site-packages/connectorx/__init__.py", line 386, in read_sql
result = _read_sql(
^^^^^^^^^^
pyo3_runtime.PanicException: Could not retrieve chrono::naive::date::NaiveDate from Value
Polars: 0.20.31 Connectorx: 0.3.3
MySQL (5.7, allowing invalid datetimes) table schema in question:
`StartDate` date NOT NULL DEFAULT '0000-00-00',
`EndDate` date NOT NULL DEFAULT '0000-00-00',
Omitting these columns from query resolves the issue.
What language are you using?
Python 3
What version are you using?
connectorx==0.3.1 polars==0.16.14
What database are you using?
MySQL AURORA
What dataframe are you using?
Polars
Can you describe your bug?
Give a high level description of the bug.
What are the steps to reproduce the behavior?
If possible, please include a minimal simple example including:
Database setup if the error only happens on specific data or data type
MySQL AURORA
Example query / code
What is the error?