You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I figured this out on my own but I got an error of trino.exceptions.FailedToObtainAddedPrepareHeader
After a bit of debugging it seems maybe because my server is an older version which return presto in the header. What I mean is that the current version of the library is looking for HEADER_ADDED_PREPARE = 'X-Trino-Added-Prepare' but the response from the server I'm using has 'X-Presto-Added-Prepare': 'st_...
The client is based on Python DB-API so the usage is
cursor.execute(sql, params)
.We use
?
for params.So an example would look like:
Note that
params
can either be a tuple or list.The text was updated successfully, but these errors were encountered: