Skip to content
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

setting session parameters #105

Open
bssuriya opened this issue Jun 8, 2021 · 1 comment
Open

setting session parameters #105

bssuriya opened this issue Jun 8, 2021 · 1 comment

Comments

@bssuriya
Copy link

bssuriya commented Jun 8, 2021

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

@Kenchir
Copy link

Kenchir commented Jun 12, 2023

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants