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 3b6402d4fa7a..95efc7108e15 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 @@ -438,7 +438,7 @@ private TableSchema getDataTableSchema(Identifier identifier, Table table) } return tableSchemaInFileSystem( - getTableLocation(identifier, table), identifier.getBranchNameOrDefault()) + getTableLocation(identifier, table), identifier.getBranchNameOrDefault()) .orElseThrow(() -> new TableNotExistException(identifier)); } @@ -989,9 +989,9 @@ public Table getHmsTable(Identifier identifier) throws TableNotExistException { private boolean isPaimonTable(Identifier identifier, Table table) { return isPaimonTable(table) && tableSchemaInFileSystem( - getTableLocation(identifier, table), - identifier.getBranchNameOrDefault()) - .isPresent(); + getTableLocation(identifier, table), + identifier.getBranchNameOrDefault()) + .isPresent(); } private static boolean isPaimonTable(Table table) { @@ -1348,4 +1348,4 @@ public static HiveConf createHiveConf(CatalogContext context) { public static String possibleHiveConfPath() { return System.getenv("HIVE_CONF_DIR"); } -} \ No newline at end of file +} diff --git a/paimon-hive/paimon-hive-catalog/src/test/java/org/apache/paimon/hive/HiveTableStatsTest.java b/paimon-hive/paimon-hive-catalog/src/test/java/org/apache/paimon/hive/HiveTableStatsTest.java index 5ada2aa5c022..660a3356a445 100644 --- a/paimon-hive/paimon-hive-catalog/src/test/java/org/apache/paimon/hive/HiveTableStatsTest.java +++ b/paimon-hive/paimon-hive-catalog/src/test/java/org/apache/paimon/hive/HiveTableStatsTest.java @@ -81,4 +81,4 @@ public void testAlterTable() throws Exception { Table table = hiveCatalog.getHmsTable(identifier); assertThat(table.getParameters().get("COLUMN_STATS_ACCURATE")).isEqualTo(null); } -} \ No newline at end of file +}