Skip to content

Commit

Permalink
fix: list_tables method in glue catalog now only return tables. (apac…
Browse files Browse the repository at this point in the history
…he#1258)

* fix: list_tables method only return tables

* Update pyiceberg/catalog/glue.py

Co-authored-by: Honah J. <[email protected]>

---------

Co-authored-by: Honah J. <[email protected]>
  • Loading branch information
2 people authored and sungwy committed Dec 7, 2024
1 parent edd279b commit a93702e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyiceberg/catalog/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,4 +783,4 @@ def drop_view(self, identifier: Union[str, Identifier]) -> None:

@staticmethod
def __is_iceberg_table(table: TableTypeDef) -> bool:
return table["Parameters"] is not None and table["Parameters"][TABLE_TYPE].lower() == ICEBERG
return table.get("Parameters", {}).get("table_type", "").lower() == ICEBERG

0 comments on commit a93702e

Please sign in to comment.