Skip to content

Commit

Permalink
[core] Improve the performance of show tables with hive metastore (ap…
Browse files Browse the repository at this point in the history
  • Loading branch information
xleoken authored Nov 28, 2024
1 parent 4bcf857 commit cdd4061
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1017,10 +1017,8 @@ public Table getHmsTable(Identifier identifier) throws TableNotExistException {

private boolean isPaimonTable(Identifier identifier, Table table) {
return isPaimonTable(table)
&& tableSchemaInFileSystem(
getTableLocation(identifier, table),
identifier.getBranchNameOrDefault())
.isPresent();
&& tableExistsInFileSystem(
getTableLocation(identifier, table), identifier.getBranchNameOrDefault());
}

private static boolean isPaimonTable(Table table) {
Expand Down

0 comments on commit cdd4061

Please sign in to comment.