-
Notifications
You must be signed in to change notification settings - Fork 722
Description
Describe the bug
I'm encountering errors like:
QueryFailed: NOT_SUPPORTED: Incorrect timestamp precision for timestamp(6); the configured precision is MILLISECONDS. You may need to manually clean the data at location ...
when running the wr.athena.read_sql_query method with the default settings against an Iceberg Athena table.
The error disappears if I switch to ctas_approach=False against Iceberg tables, i.e. the query succeeds as expected. The error does continue to occur with unload_approach=True and ctas_approach=False set.
My queries against the same Iceberg tables succeed from the Athena web ui, and from the aws cli.
I'm not seeing this error against regular non-Iceberg Athena tables.
Of note: I switched to Athena engine 3 yesterday. These errors were not observed prior to this.
The package version was initially 2.* when the errors were first encountered. I upgraded to aws-sdk-pandas 3.0.0 and the error behavior continues.
How to Reproduce
Run a query against an Iceberg table with wr.athena.read_sql_query's default settings, on AWS Athena engine 3.
Expected behavior
A pandas dataframe would be returned, instead of a traceback.
Your project
No response
Screenshots
No response
OS
mac
Python version
3.10.9
AWS SDK for pandas version
2.*/3.0.0
Additional context
No response