Skip to content

Error: table_type missing from table parameters while only loading iceberg table from Hive metaStore #1331

@gitzwz

Description

@gitzwz

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
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions