Skip to content

Error: table_type missing from table parameters when loading table from Hive metastore #1150

@edgarrmondragon

Description

@edgarrmondragon

Apache Iceberg version

main (development)

Please describe the bug 🐞

I'm (a user of tap-iceberg is) running into the following error when trying to load a Hive table using pyiceberg.

pyiceberg.exceptions.NoSuchPropertyException: Property table_type missing, could not determine type: bronze.my_iceberg_table

The call in question is https://github.com/shaped-ai/tap-iceberg/blob/38064b3aaca5394ba1482970e790d3e2f6020946/tap_iceberg/tap.py#L94.

It seems the loaded table is missing the table type parameter in

def _get_hive_table(self, open_client: Client, database_name: str, table_name: str) -> HiveTable:
try:
return open_client.get_table(dbname=database_name, tbl_name=table_name)

?

Thanks in advance if this turns out to be user error 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions