Skip to content

only add .db suffix in warehouse location for dynamo/hive/glue catalogs #2059

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kevinjqliu
Copy link
Contributor

@kevinjqliu kevinjqliu commented Jun 2, 2025

Closes #2052

Rationale for this change

Aligns catalog behavior with the java reference implementation.

HiveCatalog, DynamoDbCatalog, and GlueCatalog all use .db suffix in warehouse location
JdbcCatalog, HadoopCatalog, and InMemoryCatalog do not use .db suffix in warehouse location

Are these changes tested?

Yes tests for sql catalog are modified to remove .db

Are there any user-facing changes?

@jayceslesar
Copy link
Contributor

could do something fancy with os.path.splitext but that seems like it would lead down a path where we are assuming what the user wants

@kevinjqliu kevinjqliu force-pushed the kevinjqliu/remove-.db-suffix branch from 217d912 to f393c38 Compare June 3, 2025 02:28
@kevinjqliu kevinjqliu changed the title remove .db suffix in warehouse location only add .db suffix in warehouse location for dynamo/hive/glue catalogs Jun 3, 2025
@kevinjqliu kevinjqliu marked this pull request as ready for review June 3, 2025 02:44
@kevinjqliu
Copy link
Contributor Author

@jayceslesar made it so aligns with the java implementation

@kevinjqliu kevinjqliu requested a review from Fokko June 3, 2025 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pyiceberg write an extra .db in the schema path
2 participants