Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zouxxyy committed Nov 20, 2024
1 parent 3f19c48 commit 5266bd0
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -963,11 +963,12 @@ public void repairTable(Identifier identifier) throws TableNotExistException {
}
} catch (TableNotExistException e) {
// hive table does not exist.
Table finalNewTable =
newTable == null
? createHiveTable(
identifier, tableSchema, location, usingExternalTable())
: newTable;
if (newTable == null) {
newTable =
createHiveTable(
identifier, tableSchema, location, usingExternalTable());
}
Table finalNewTable = newTable;
clients.execute(client -> client.createTable(finalNewTable));
}

Expand Down

0 comments on commit 5266bd0

Please sign in to comment.