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 cdd4061db4 [core] Improve the performance of show tables with hive
metastore (#4605)
cdd4061db4 is described below
commit cdd4061db4b43393aab6fc5b2ce2c13ed34c69f3
Author: xleoken <[email protected]>
AuthorDate: Thu Nov 28 14:31:01 2024 +0800
[core] Improve the performance of show tables with hive metastore (#4605)
---
.../src/main/java/org/apache/paimon/hive/HiveCatalog.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git
a/paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveCatalog.java
b/paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveCatalog.java
index 0ecc78469e..9a90995f28 100644
---
a/paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveCatalog.java
+++
b/paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveCatalog.java
@@ -1017,10 +1017,8 @@ public class HiveCatalog extends AbstractCatalog {
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) {