Skip to content
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

Jahangir yelp/fix iceberg database location #5260

Conversation

jahangir-yelp
Copy link

Purpose

Linked issue: close #5259

This PR fixes an issue where Paimon registers an incorrect database location in Glue (or another catalog) when using IcebergOptions.StorageType.TABLE_LOCATION.

Issue Details:
When creating a Paimon table with Iceberg compatibility and setting:
'metadata.iceberg.storage' = 'table-location'
Paimon automatically creates the database and table in Glue if they do not already exist.
However, the registered database location does not match the actual table location, causing unexpected behavior.
This issue affects Iceberg readers and AWS Lake Formation, which rely on the correct database location for access control.

Tests

The following unit tests (UT) were added:
IcebergCommitCallbackTest#testCatalogDatabasePath (Parameterized test for different storage types)
IcebergCommitCallbackTest#testCatalogTableMetadataPath (Ensures correct metadata path resolution)

API and Format

No change

Documentation

No new feature introduced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant