From 958edd977a6ad85d7bc08f00bafd35bf047c8409 Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Wed, 6 Nov 2024 17:20:38 -0800 Subject: [PATCH] add deprecation message --- pyiceberg/catalog/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyiceberg/catalog/__init__.py b/pyiceberg/catalog/__init__.py index f5050d26b4..b189b4094d 100644 --- a/pyiceberg/catalog/__init__.py +++ b/pyiceberg/catalog/__init__.py @@ -781,6 +781,13 @@ class MetastoreCatalog(Catalog, ABC): def __init__(self, name: str, **properties: str): super().__init__(name, **properties) + if self.properties.get(DEPRECATED_BOTOCORE_SESSION): + deprecation_message( + deprecated_in="0.8.0", + removed_in="0.9.0", + help_message=f"The property {DEPRECATED_BOTOCORE_SESSION} is deprecated and will be removed.", + ) + def create_table_transaction( self, identifier: Union[str, Identifier],