I've run into an issue a few times where I run a query usin read_sql_query and get completely different results frmo the Athena GUI.
Restarting kernel and re-running fixes it.
I think this is likely to be a result of caching behaviour - possibly from awswrangler.
I haven't yet been able to create a fully reproducible example. The query I was running this morning was:
sql = """
select *
from data_linking_temp.nomis_csv_qa
limit 10
"""
df = pydb.read_sql_query(sql)
Note: This isn't simply a result of different rows being returned (which might be expected due to the distributed nature of the query). The query was returning the wrong columns and the wrong number of rows
I've run into an issue a few times where I run a query usin
read_sql_queryand get completely different results frmo the Athena GUI.Restarting kernel and re-running fixes it.
I think this is likely to be a result of caching behaviour - possibly from
awswrangler.I haven't yet been able to create a fully reproducible example. The query I was running this morning was:
Note: This isn't simply a result of different rows being returned (which might be expected due to the distributed nature of the query). The query was returning the wrong columns and the wrong number of rows