Datetime in Trino row_condition is bound as VARCHAR, causing TIMESTAMP type mismatch #12010
Unanswered
hsanslavillepro
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Trino row condition binds Python
datetimeasVARCHARHi everyone,
I am using Great Expectations with Trino and a
TableAsset.When I use a Python
datetimein arow_condition, the value is sent to Trino as aVARCHARinstead of aTIMESTAMP.Environment
1.18.23.11ExpectTableRowCountToBeBetweenCode
The Trino column is:
Error
The generated SQL contains:
The parameter is:
Although I pass a Python
datetime, the parameter appears to be serialized and bound as aVARCHAR.Expected behavior
The parameter should be bound as a SQL
TIMESTAMP, or the generated SQL should use an explicit cast:Questions
1.19.1or a later version?CASTin arow_condition?Thank you for your time ⌚ 🐛 🙏
All reactions