Skip to content

Commit d5b51f9

Browse files
omkengeHonahX
andauthored
fix: list_tables method in glue catalog now only return tables. (#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]>
1 parent 3ed1c24 commit d5b51f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyiceberg/catalog/glue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,4 +784,4 @@ def drop_view(self, identifier: Union[str, Identifier]) -> None:
784784

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

0 commit comments

Comments
 (0)