Skip to content

Commit

Permalink
[AMORO-3065] Optimizing rest api efficiency for table detail (#3260)
Browse files Browse the repository at this point in the history
For table detail we'll retrive detail info  from underlying table, before the change
there will be two call to the catalog when loading the table: 1) check whether the database exists,
2) load the table for the detail info. After the change, the first call to catalog has been removed,
and use the second call to check if the table exists.
  • Loading branch information
klion26 authored Oct 16, 2024
1 parent 39a5aa1 commit 4524764
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ public void dropDatabase(String database) {

@Override
public AmoroTable<?> loadTable(String database, String table) {
if (!databaseExists(database)) {
throw new NoSuchDatabaseException("Database: " + database + " does not exist.");
}

return formatCatalogAsOrder(
TableFormat.MIXED_HIVE,
TableFormat.MIXED_ICEBERG,
Expand Down

0 comments on commit 4524764

Please sign in to comment.