Athena has a new option to manage the storage for your queries. This doesn't appear to work with pyathena
When I am using a workgroup with this set, I always get an empty result set for any query
e.g.
@app.command()
def test():
with pyathena.connect(region_name="eu-north-1",
cursor_class=pyathena.pandas.cursor.PandasCursor,
work_group="primary") as conn:
with conn.cursor() as cursor:
cursor.execute("SELECT 1")
print(cursor.fetchall())
gives a result of
AWS_PROFILE=osm-service-logs uv run ofastlylog test
[]
When I switch to Customer managed storage I get
AWS_PROFILE=osm-service-logs uv run ofastlylog test
[(np.int64(1),)]