diff --git a/paimon-core/src/main/java/org/apache/paimon/catalog/DelegateCatalog.java b/paimon-core/src/main/java/org/apache/paimon/catalog/DelegateCatalog.java index 37b96877c897..d05e100b24e4 100644 --- a/paimon-core/src/main/java/org/apache/paimon/catalog/DelegateCatalog.java +++ b/paimon-core/src/main/java/org/apache/paimon/catalog/DelegateCatalog.java @@ -136,6 +136,16 @@ public Table getTable(Identifier identifier) throws TableNotExistException { return wrapped.getTable(identifier); } + @Override + public boolean tableExists(Identifier identifier) { + return wrapped.tableExists(identifier); + } + + @Override + public boolean viewExists(Identifier identifier) { + return wrapped.viewExists(identifier); + } + @Override public View getView(Identifier identifier) throws ViewNotExistException { return wrapped.getView(identifier); 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 5300d7d5aac5..1df29ce8172f 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 @@ -1263,6 +1263,6 @@ public static String possibleHiveConfPath() { } private static boolean isView(Table table) { - return TableType.valueOf(table.getTableType()) != TableType.VIRTUAL_VIEW; + return TableType.valueOf(table.getTableType()) == TableType.VIRTUAL_VIEW; } }