Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Delta protocol version is too new for Athena DDL engine" Error When Querying Delta Tables #2938

Closed
marcoaanogueira opened this issue Oct 10, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@marcoaanogueira
Copy link

Environment

Delta-rs version: 0.20.0

Environment:

  • Cloud provider: AWS

Bug

What happened:
When trying to query Delta Lake tables via Athena, I received the following error:
Delta protocol version is too new for Athena DDL engine.
This error occurred even though the metadata shows a Delta protocol version that, according to the documentation, should be compatible with Athena.

What you expected to happen:
Athena should be able to query the Delta Lake tables without encountering a protocol version incompatibility issue.

How to reproduce it:
Create a Delta Lake table in Athena using the following command:

CREATE EXTERNAL TABLE
<schema>.<table>
LOCATION '<delta table path>'
TBLPROPERTIES ('table_type' = 'DELTA')

More details:
Captura de Tela 2024-10-10 às 12 13 02

@marcoaanogueira marcoaanogueira added the bug Something isn't working label Oct 10, 2024
@rtyler
Copy link
Member

rtyler commented Oct 10, 2024

How was the table created? There may be some features used that pushed the protocol version too high for Athena SQL to use

@marcoaanogueira
Copy link
Author

Sorry for closing it; I thought I should close it since the instruction in another issue was to open a support ticket with AWS.

I created the table using the write_deltalake function:

write_deltalake(
        table_or_uri=s3_destination,
        data=pa_source_delta_casted,
        mode="append",
        schema_mode="merge",
        storage_options=STORAGE_OPTIONS,
    )

@marcoaanogueira
Copy link
Author

The version appears to be correct and compatible with what is stated in the AWS documentation.

Captura de Tela 2024-10-10 às 14 29 03

@delta-io delta-io locked and limited conversation to collaborators Oct 10, 2024
@rtyler rtyler converted this issue into discussion #2939 Oct 10, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants