-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Superset does not cast trino timestamp correctly #21567
Comments
This issue is resolved in Superset 1.5.1 (PR link) See superset/superset/db_engine_specs/presto.py Lines 740 to 762 in 48f3eb4
Let me know if that works for you! |
@mdesmet I've tested with 1.5.2. Looks like problem still exists. Btw we are using mongo connector if it helps. |
I'm able to reproduce your issue. will post a PR later today. |
Seems like this should have been closed by the linked PR. Holler if there's any need to re-open. |
I have upgraded
sqlalchemy-trino==0.4.1
totrino==0.315.0
since sqlalchemy-trino deprecated . After that we started getting below errorI did some investigation and realized superset started to set column type as
timestamp(3)
instead oftimestamp
after upgrade. This change prevent superset casts time correctly. I've compared queries and saw that superset does not cast time filter anymore.Casting before(working)
inserted_at >= from_iso8601_timestamp('2022-09-16T09:07:45.000000')
Casting after(erroneous)
inserted_at >= '2022-09-16 08:47:13.000000'
Clearly there is some compatibility issue with new trino client. For now I solved my problem by downgrading trino client but I'd appreciate If this issue solved so that we can use latest client
How to reproduce the bug
Environment
Additional context
Related #16223
The text was updated successfully, but these errors were encountered: