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

bug: ibis.trino.connect throwing traceback error #9113

Open
1 task done
Tay0z opened this issue May 3, 2024 · 1 comment
Open
1 task done

bug: ibis.trino.connect throwing traceback error #9113

Tay0z opened this issue May 3, 2024 · 1 comment
Labels
bug Incorrect behavior inside of ibis

Comments

@Tay0z
Copy link

Tay0z commented May 3, 2024

What happened?

Not sure if this is a user error or bug but the way I connected to Trino using ibis-framework v.8.0.0 is not working in 9.0.0

Here is an example of the code:

if __name__=='__main__':
    con = ibis.trino.connect(
        host = 'trino_host',
        user='myusername',
        password='mypassword',
        port=443,
        database='trino_catalog',
        schema='trino_schema',
        http_scheme='https'
    )
    run_query="SELECT * FROM trino_catalog.trino_schema.trino_table LIMIT 1"
    query_ran = con.sql(run_query).execute()
    print(query_ran)

And here is the traceback error it returns:

File "\site-packages\trino\client.py", line 434, in __init__
 self._auth.set_http_session(self._http_session)
 ^^^^^^^^^^^^^^^^^^^^
AttributeError:'str' object has no attribute 'set_http_session'

What version of ibis are you using?

ibis-framework==9.0.0

What backend(s) are you using, if any?

Trino

Relevant log output

.
File "\site-packages\trino\client.py", line 434, in __init__
 self._auth.set_http_session(self._http_session)
 ^^^^^^^^^^^^^^^^^^^^
AttributeError:'str' object has no attribute 'set_http_session'
.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Tay0z Tay0z added the bug Incorrect behavior inside of ibis label May 3, 2024
@cpcloud
Copy link
Member

cpcloud commented May 8, 2024

Can you show the version of the trino client you're using?

Something like this:

In [1]: import trino

In [2]: trino.__version__
Out[2]: '0.328.0'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis
Projects
Status: backlog
Development

No branches or pull requests

2 participants