Skip to content

Conversation

@JingsongLi
Copy link
Contributor

Purpose

Next PR for #5157

Tests

API and Format

Documentation

request,
restAuthFunction);
} catch (NoSuchResourceException e) {
throw new TableNotExistException(identifier);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the database or the tag does not exist?

identifier.getDatabaseName(), identifier.getTableName(), branch),
restAuthFunction);
} catch (NoSuchResourceException e) {
throw new TableNotExistException(identifier);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the branch does not exist?

request,
restAuthFunction);
} catch (NoSuchResourceException e) {
throw new TableNotExistException(identifier);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the branch or the database does not exist?

}
return response.branches();
} catch (NoSuchResourceException e) {
throw new TableNotExistException(identifier);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the database does not exist?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should not have this exception. According to the current design, we only need to check the upper level exception when creating xx and listing xx (the upper level of branch is table)

}

public String branches(String databaseName, String tableName) {
return SLASH.join(V1, prefix, DATABASES, databaseName, TABLES, tableName, "branches");
Copy link
Contributor

Choose a reason for hiding this comment

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

make "branches" like TABLES

@jerry-024
Copy link
Contributor

+1

@JingsongLi JingsongLi merged commit f90c59d into apache:master Feb 27, 2025
12 checks passed
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.

2 participants