Skip to content

Commit ed8a3fe

Browse files
committed
Revert "try v4 types"
This reverts commit 69e6904.
1 parent 69e6904 commit ed8a3fe

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

pyiceberg/catalog/hive.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from urllib.parse import urlparse
3636

3737
from hive_metastore.v3.ThriftHiveMetastore import Client
38-
from hive_metastore.v4.ttypes import (
38+
from hive_metastore.v3.ttypes import (
3939
AlreadyExistsException,
4040
CheckLockRequest,
4141
EnvironmentContext,
@@ -55,10 +55,10 @@
5555
StorageDescriptor,
5656
UnlockRequest,
5757
)
58-
from hive_metastore.v4.ttypes import (
58+
from hive_metastore.v3.ttypes import (
5959
Database as HiveDatabase,
6060
)
61-
from hive_metastore.v4.ttypes import (
61+
from hive_metastore.v3.ttypes import (
6262
Table as HiveTable,
6363
)
6464
from tenacity import retry, retry_if_exception_type, stop_after_attempt, wait_exponential
@@ -153,6 +153,9 @@
153153

154154
logger = logging.getLogger(__name__)
155155

156+
v3type = importlib.import_module("hive_metastore.v3.ttypes")
157+
v4type = importlib.import_module("hive_metastore.v4.ttypes")
158+
156159

157160
class _HiveClient:
158161
"""Helper class to nicely open and close the transport."""

0 commit comments

Comments
 (0)