-
Notifications
You must be signed in to change notification settings - Fork 105
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: Passing Session to Connection, doesn't update client args for S3fs #375
Comments
A possible work around is to set these credentials as kwargs for now, but PyAthena could also handle this in the future.
|
Thank you. The workaround implementation looks good, but it would be nice if the Session object could be passed to s3fs. |
It is difficult to convert a botocore Session object to an AioSession.
|
Currently, when a session is passed, the client args aren't updated to reflect the session's credentials.
This is important for the
PandasCursor
because it passes the client args to s3fs to grab the files. It can create access issues and get failures.PyAthena/pyathena/connection.py
Lines 98 to 99 in 0f6b44d
PyAthena/pyathena/connection.py
Lines 35 to 37 in 0f6b44d
PyAthena/pyathena/connection.py
Lines 209 to 211 in 0f6b44d
PyAthena/pyathena/pandas/result_set.py
Line 174 in 0f6b44d
The text was updated successfully, but these errors were encountered: