-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wr.athena.to_iceberg not using temp_path #2978
Comments
Hi @lautarortega looks like the table has not been updated correctly. Can you refer the query you used to update the table? |
Hi @kukushking! Yes, sure. This is the command I used. ALTER TABLE test_table |
Thanks, I am able to reproduce this with the following snippet:
Looking into the fix. |
This relates to apache/iceberg#7584 in which Glue still displays old columns as if they were present in the schema, while subsequent |
Describe the bug
I created an iceberg table in Athena through AWS Wrangler. I rename a column through an Athena query. When I want to write more rows to the table with the new col in the df, I get this error
QueryFailed: TYPE_MISMATCH: Insert query has mismatched column types: Table: [varchar, integer, varchar], Query: [varchar, integer, varchar, integer]. If a data manifest file was generated at 's3://aws-athena-query-results-494340620388-eu-west-1/68cb1983-852e-4f12-9d17-7af88520b02a-manifest.csv', you may need to manually clean the data from locations specified in the manifest. Athena will not delete data in your account.
The error mentioning this S3 path makes me believe it is not using the temp path I passed as an argument.
How to Reproduce
Expected behavior
No response
Your project
No response
Screenshots
No response
OS
Mac
Python version
3.10
AWS SDK for pandas version
3.9.1
Additional context
No response
The text was updated successfully, but these errors were encountered: