Skip to content

Commit 69e6904

Browse files
committed
try v4 types
1 parent b496cbf commit 69e6904

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

pyiceberg/catalog/hive.py

Lines changed: 3 additions & 6 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.v3.ttypes import (
38+
from hive_metastore.v4.ttypes import (
3939
AlreadyExistsException,
4040
CheckLockRequest,
4141
EnvironmentContext,
@@ -55,10 +55,10 @@
5555
StorageDescriptor,
5656
UnlockRequest,
5757
)
58-
from hive_metastore.v3.ttypes import (
58+
from hive_metastore.v4.ttypes import (
5959
Database as HiveDatabase,
6060
)
61-
from hive_metastore.v3.ttypes import (
61+
from hive_metastore.v4.ttypes import (
6262
Table as HiveTable,
6363
)
6464
from tenacity import retry, retry_if_exception_type, stop_after_attempt, wait_exponential
@@ -153,9 +153,6 @@
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-
159156

160157
class _HiveClient:
161158
"""Helper class to nicely open and close the transport."""

0 commit comments

Comments
 (0)