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: OAuth issue when connecting to Trino, multiple values for auth argument #10566

Closed
1 task done
lucasfangrokt opened this issue Dec 9, 2024 · 2 comments
Closed
1 task done
Labels
bug Incorrect behavior inside of ibis

Comments

@lucasfangrokt
Copy link

What happened?

We're running a Trino server and I am able to connect to the Trino database through the regular python API using this format:

``
import trino
from trino.auth import OAuth2Authentication

conn = trino.connect(
host=XXX,
user=XXX,
auth=OAuth2Authentication(),
http_scheme="https",
port=XXX,
)
``

However, when I attempt to connect through Ibis using this code:

``
import ibis
from trino.auth import OAuth2Authentication

conn = ibis.trino.connect(
host=XXX,
user=XXX,
auth=OAuth2Authentication(),
http_scheme="https",
port=XXX,
)
``

it throws an error saying that there are multiple values for the the auth keyword argument.

What version of ibis are you using?

v 9.0.0

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

NA

Relevant log output

TypeError: trino.dbapi.connect() got multiple values for keyword argument 'auth'

Code of Conduct

  • I agree to follow this project's Code of Conduct
@lucasfangrokt lucasfangrokt added the bug Incorrect behavior inside of ibis label Dec 9, 2024
@gforsyth
Copy link
Member

gforsyth commented Dec 9, 2024

Hey @lucasfangrokt ! Can you try upgrading to 9.5.0? I think we fixed this in a recent release.

@cpcloud
Copy link
Member

cpcloud commented Jan 1, 2025

This has been fixed on main.

@cpcloud cpcloud closed this as not planned Won't fix, can't repro, duplicate, stale Jan 1, 2025
@github-project-automation github-project-automation bot moved this from backlog to done in Ibis planning and roadmap Jan 1, 2025
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: done
Development

No branches or pull requests

3 participants