-
Notifications
You must be signed in to change notification settings - Fork 189
trino-python-client returns dtype string for datetime/timestamp fields #32
New issue
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
Comments
The biggest question is how to avoid breaking users. |
@findepi I would like to contribute a fix for this. Would you like me to detail a fix first, or just submit a Pull Request? |
@alexbrisan awesome! it's worthwhile to have a conversation before doing work, if the work would take a lot of time. Things to consider
|
I will take a look at the oracle one and come up with a plan! |
The issue cases Superset to fail creating datasets that have DATE/TIMESTAMP columns. I can also send a PR if there is any interest to fix it but #81 seems to fix the issue already. |
I think this issue can be closed as we merged #160. |
@mdesmet Closed. Thanks for your contribution! |
presto-client returns data type of string for a timestamp field.
Setup:
Tested:
psycopg2
driver with SQLalchemy directly to Postgres, the field is returned as a python datetime object or pandas timestamp object.Expectation:
The field should be returned as a python datetime object or pandas timestamp object, akin to the PostgreSQL driver.
Note:
The issue has also been reported for pyhive (no longer under current development). I have not tested PrestoDB's version to see if the other team has also worked on the topic.
The text was updated successfully, but these errors were encountered: