We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python
Python 3.9 connectorx==0.3.4a1
connectorx==0.3.4a1
OracleDB
Polars
Seems to not be able to load timestamps before 1677-09-22 00:00:00
1677-09-22 00:00:00
import connectorx as cx connection = "oracle://..." cx.read_sql(connection, "SELECT timestamp '1677-09-22 00:00:00' FROM table", return_type="polars2") # works cx.read_sql(connection, "SELECT timestamp '1677-09-21 00:00:00' FROM table", return_type="polars2") # fails
Error: pyo3_runtime.PanicException: out of range DateTime
pyo3_runtime.PanicException: out of range DateTime
Included in example above (no specific table needed for this query)
import connectorx as cx connection = "oracle://..." cx.read_sql(connection, "SELECT timestamp '1677-09-22 00:00:00' FROM table", return_type="polars2") # works cx.read_sql(connection, "SELECT timestamp '1677-09-21 00:00:00' FROM table", return_type="polars2") # fails cx.read_sql(connection, "SELECT timestamp '1677-09-22 00:00:00' FROM table", return_type="polars") # works cx.read_sql(connection, "SELECT timestamp '1677-09-21 00:00:00' FROM table", return_type="polars") # fails
The text was updated successfully, but these errors were encountered:
Also related #634
Sorry, something went wrong.
I also had the same issue with reading date date from SQL Server, even with Version 0.4.0.
No branches or pull requests
What language are you using?
Python
What version are you using?
Python 3.9
connectorx==0.3.4a1
What database are you using?
OracleDB
What dataframe are you using?
Polars
Can you describe your bug?
Seems to not be able to load timestamps before
1677-09-22 00:00:00
What are the steps to reproduce the behavior?
Error:
pyo3_runtime.PanicException: out of range DateTime
Database setup if the error only happens on specific data or data type
Included in example above (no specific table needed for this query)
Example query / code
What is the error?
pyo3_runtime.PanicException: out of range DateTime
The text was updated successfully, but these errors were encountered: