This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new 0ad2ae960 [hotfix] HiveMetastoreClient should ignore branch (#3873)
0ad2ae960 is described below
commit 0ad2ae96013c710768a849249d0d203de080c764
Author: yuzelin <[email protected]>
AuthorDate: Fri Aug 2 19:14:41 2024 +0800
[hotfix] HiveMetastoreClient should ignore branch (#3873)
---
.../main/java/org/apache/paimon/hive/HiveMetastoreClient.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveMetastoreClient.java
b/paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveMetastoreClient.java
index 0192e0022..b006f09c9 100644
---
a/paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveMetastoreClient.java
+++
b/paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveMetastoreClient.java
@@ -69,7 +69,7 @@ public class HiveMetastoreClient implements MetastoreClient {
client ->
client.getTable(
identifier.getDatabaseName(),
- identifier.getObjectName()))
+ identifier.getTableName()))
.getSd();
}
@@ -86,7 +86,7 @@ public class HiveMetastoreClient implements MetastoreClient {
client ->
client.getPartition(
identifier.getDatabaseName(),
- identifier.getObjectName(),
+ identifier.getTableName(),
partitionValues));
// do nothing if the partition already exists
} catch (NoSuchObjectException e) {
@@ -99,7 +99,7 @@ public class HiveMetastoreClient implements MetastoreClient {
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);
@@ -118,7 +118,7 @@ public class HiveMetastoreClient implements MetastoreClient
{
client ->
client.dropPartition(
identifier.getDatabaseName(),
- identifier.getObjectName(),
+ identifier.getTableName(),
partitionValues,
false));
} catch (NoSuchObjectException e) {
@@ -133,7 +133,7 @@ public class HiveMetastoreClient implements MetastoreClient
{
client ->
client.markPartitionForEvent(
identifier.getDatabaseName(),
- identifier.getObjectName(),
+ identifier.getTableName(),
partitionSpec,
PartitionEventType.LOAD_DONE));
} catch (NoSuchObjectException e) {