Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pyiceberg/catalog/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,17 @@ def add_glue_catalog_id(params: Dict[str, str], **kwargs: Any) -> None:


class GlueCatalog(MetastoreCatalog):
def __init__(self, name: str, **properties: Any):
glue: GlueClient

def __init__(self, name: str, client: GlueClient | None = None, **properties: Any):
super().__init__(name, **properties)

retry_mode_prop_value = get_first_property_value(properties, GLUE_RETRY_MODE)

if client:
self.glue = client
return

session = boto3.Session(
profile_name=properties.get(GLUE_PROFILE_NAME),
region_name=get_first_property_value(properties, GLUE_REGION, AWS_REGION),
Expand Down
Loading