prestodb / presto-python-client

Python DB-API client for Presto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setting session parameters

bssuriya opened this issue · comments

Not able to set session parameters, since it's due to nonetype object. Trying the equivalent like :
set session iterative_optimizer_timeout = '20.00m'

Theris session_properties attribute

with prestodb.dbapi.connect(
    host='',
    port=8443,
    user='',
    catalog='',
    schema=']',
    http_scheme=']]',
    auth=
) as conn:
    conn._http_session.verify=False
    conn.session_properties= {'offset_clause_enabled': True}