Skip to content

Commit

Permalink
Address review + add concurrency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Will-Lo committed Jan 13, 2022
1 parent 14767b1 commit d723cb4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ private void createOrAlterTable(IMetaStoreClient client, Table table, HiveSpec s
}

public boolean existsTable(String dbName, String tableName, IMetaStoreClient client) throws IOException {
if (this.optimizedChecks && this.tableAndDbExistenceCache.getIfPresent(dbName + ":" + tableName ) != null ) {
Boolean tableExits = this.tableAndDbExistenceCache.getIfPresent(dbName + ":" + tableName );
if (this.optimizedChecks && tableExits != null && tableExits) {
return true;
}
try {
Expand Down

0 comments on commit d723cb4

Please sign in to comment.