Skip to content

Commit 420da60

Browse files
committed
fix(glue): Simplify S3 Tables connection type check in _is_s3tables_database
1 parent 355f242 commit 420da60

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
@@ -439,7 +439,7 @@ def _is_s3tables_database(self, database_name: str) -> bool:
439439
return False
440440
database = database_response["Database"]
441441
federated = database.get("FederatedDatabase", {})
442-
return (federated.get("ConnectionType") or "").lower() == GLUE_CONNECTION_S3_TABLES
442+
return federated.get("ConnectionType", "") == GLUE_CONNECTION_S3_TABLES
443443

444444
def _create_table_s3tables(
445445
self,

0 commit comments

Comments
 (0)