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

REST: Fallback to older logic for existence check in RESTSessionCatalog #12294

Closed
wants to merge 1 commit into from

Conversation

ebyhr
Copy link
Contributor

@ebyhr ebyhr commented Feb 17, 2025

@ebyhr ebyhr changed the title REST:Fallback to older logic for existence check in RESTSessionCatalog REST: Fallback to older logic for existence check in RESTSessionCatalog Feb 17, 2025
@github-actions github-actions bot added the core label Feb 17, 2025
@ebyhr
Copy link
Contributor Author

ebyhr commented Feb 17, 2025

cc: @nastra @danielcweeks @snazy

@ebyhr ebyhr force-pushed the ebi/rest-fallback branch 2 times, most recently from 7e60357 to 2b70a24 Compare February 17, 2025 01:52
@ebyhr ebyhr force-pushed the ebi/rest-fallback branch from 2b70a24 to b7810f3 Compare February 17, 2025 02:42
@nastra
Copy link
Contributor

nastra commented Feb 17, 2025

@ebyhr just FYI that this was already proposed in #12259 (comment)

try {
checkIdentifierIsValid(identifier);
client.head(paths.table(identifier), headers(context), ErrorHandlers.tableErrorHandler());
return true;
if (endpoints.contains(Endpoint.V1_TABLE_EXISTS)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an issue of this PR, but I doubt that there is any Iceberg-REST-service implementation that does not implement the HEAD endpoint - simply because versions up to 1.7 did not fail.

I'd propose to replace the V1_TABLE/VIEW/NAMESPACE_EXISTS with V1_LOAD_TABLE/VIEW/NAMESPACE to revert to the pre-1.8 behavior.

@ebyhr
Copy link
Contributor Author

ebyhr commented Feb 19, 2025

Closing as #12314 was merged.

@ebyhr ebyhr closed this Feb 19, 2025
@ebyhr ebyhr deleted the ebi/rest-fallback branch February 19, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants