Skip to content

Commit 129bc40

Browse files
omkengeHonahX
authored andcommitted
fix: list_tables method in glue catalog now only return tables. (apache#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 fc77e61 commit 129bc40

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
@@ -783,4 +783,4 @@ def drop_view(self, identifier: Union[str, Identifier]) -> None:
783783

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

0 commit comments

Comments
 (0)