Skip to content

Commit

Permalink
[hotfix] HiveMetastoreClient should ignore branch
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzelin committed Aug 2, 2024
1 parent 7a9bcda commit 3724f0e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class HiveMetastoreClient implements MetastoreClient {
client ->
client.getTable(
identifier.getDatabaseName(),
identifier.getObjectName()))
identifier.getTableName()))
.getSd();
}

Expand All @@ -86,7 +86,7 @@ public void addPartition(LinkedHashMap<String, String> partitionSpec) throws Exc
client ->
client.getPartition(
identifier.getDatabaseName(),
identifier.getObjectName(),
identifier.getTableName(),
partitionValues));
// do nothing if the partition already exists
} catch (NoSuchObjectException e) {
Expand All @@ -99,7 +99,7 @@ public void addPartition(LinkedHashMap<String, String> partitionSpec) throws Exc

Partition hivePartition = new Partition();
hivePartition.setDbName(identifier.getDatabaseName());
hivePartition.setTableName(identifier.getObjectName());
hivePartition.setTableName(identifier.getTableName());
hivePartition.setValues(partitionValues);
hivePartition.setSd(newSd);
int currentTime = (int) (System.currentTimeMillis() / 1000);
Expand All @@ -118,7 +118,7 @@ public void deletePartition(LinkedHashMap<String, String> partitionSpec) throws
client ->
client.dropPartition(
identifier.getDatabaseName(),
identifier.getObjectName(),
identifier.getTableName(),
partitionValues,
false));
} catch (NoSuchObjectException e) {
Expand All @@ -133,7 +133,7 @@ public void markDone(LinkedHashMap<String, String> partitionSpec) throws Excepti
client ->
client.markPartitionForEvent(
identifier.getDatabaseName(),
identifier.getObjectName(),
identifier.getTableName(),
partitionSpec,
PartitionEventType.LOAD_DONE));
} catch (NoSuchObjectException e) {
Expand Down

0 comments on commit 3724f0e

Please sign in to comment.