The python code below can fetch data from a pre-configured athena table when it is run on local computer. But it automatically creates an S3 bucket to store temporary tables and metadata. The automatically created bucket name looks like aws-athena-query-results-<account_id>-{aws-region>
. Is there a way to specify awswrangler
to use another S3 location?
import awswrangler as wr
db_name = "test_db"
table_name = "test_table"
query = f"SELECT * FROM {db_name}.{table_name}"
df = wr.athena.read_sql_query(sql=query, database=db_name)