You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
workgroup argument of athena.read_sql_query() method is not propagated when the new approach unload_approach=True is used.
As a result code tried to use the default workgroup "primary" which isn't accessible for my IAM role hence call fails.
How to Reproduce
Create new Athena workgroup e.g. "large_scans" in your AWS account and pass it like this:
wr.athena.read_sql_query(
sql=query,
workgroup="large_scans",
ctas_approach=False,
unload_approach=True, # Note that all works as expected when unload approach is not used
Put a breakpoint in awswrangler.athena._utils._start_query_execution function and notice value of workgroup argument is None
Expected behavior
The code should use the workgroup supplied in the call instead of the default "primary" one.
Your project
No response
Screenshots
No response
OS
Win
Python version
3.8.10
AWS DataWrangler version
2.14.0
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
workgroup
argument ofathena.read_sql_query()
method is not propagated when the new approachunload_approach=True
is used.As a result code tried to use the default workgroup "primary" which isn't accessible for my IAM role hence call fails.
How to Reproduce
Create new Athena workgroup e.g. "large_scans" in your AWS account and pass it like this:
Put a breakpoint in
awswrangler.athena._utils._start_query_execution
function and notice value ofworkgroup
argument isNone
Expected behavior
The code should use the workgroup supplied in the call instead of the default "primary" one.
Your project
No response
Screenshots
No response
OS
Win
Python version
3.8.10
AWS DataWrangler version
2.14.0
Additional context
No response
The text was updated successfully, but these errors were encountered: