Apache Iceberg version
main (development)
Please describe the bug 🐞
New problem related to #1145, if there are tables with no "table_type" in table.parameters, cli could not list tables properly but runs into an exception. Or should every hive table have "table_type" default value in table.parameters?
|
database_name = self.identifier_to_database(namespace, NoSuchNamespaceError) |
|
with self._client as open_client: |
|
return [ |
|
(database_name, table.tableName) |
|
for table in open_client.get_table_objects_by_name( |
|
dbname=database_name, tbl_names=open_client.get_all_tables(db_name=database_name) |
|
) |
|
if table.parameters[TABLE_TYPE].lower() == ICEBERG |
|
] |