This is an automated email from the ASF dual-hosted git repository.
rymurr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/master by this push:
new c23831a Remove literal false boolean value (#2412)
c23831a is described below
commit c23831a0318692f8dc151d6cc1aa039ca4f01802
Author: cutiechi <[email protected]>
AuthorDate: Wed Apr 7 16:20:31 2021 +0800
Remove literal false boolean value (#2412)
---
hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java
b/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java
index e27eb57..e89f6cd 100644
--- a/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java
+++ b/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java
@@ -116,8 +116,8 @@ public class HiveCatalog extends BaseMetastoreCatalog
implements SupportsNamespa
List<String> tableNames = clients.run(client ->
client.getAllTables(database));
List<Table> tableObjects = clients.run(client ->
client.getTableObjectsByName(database, tableNames));
List<TableIdentifier> tableIdentifiers = tableObjects.stream()
- .filter(table -> table.getParameters() == null ? false :
BaseMetastoreTableOperations.ICEBERG_TABLE_TYPE_VALUE
-
.equalsIgnoreCase(table.getParameters().get(BaseMetastoreTableOperations.TABLE_TYPE_PROP)))
+ .filter(table -> table.getParameters() != null &&
BaseMetastoreTableOperations.ICEBERG_TABLE_TYPE_VALUE
+
.equalsIgnoreCase(table.getParameters().get(BaseMetastoreTableOperations.TABLE_TYPE_PROP)))
.map(table -> TableIdentifier.of(namespace, table.getTableName()))
.collect(Collectors.toList());