Skip to content

Conversation

@ebyhr
Copy link
Member

@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
Member 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)

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
Member 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