We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a627aa8 commit 6b8d2eeCopy full SHA for 6b8d2ee
pyiceberg/catalog/hive.py
@@ -165,9 +165,10 @@ def _client(self) -> Client:
165
return client
166
167
def __enter__(self) -> Client:
168
- """Reinitialize transport if was closed."""
169
- if self._transport and not self._transport.isOpen():
+ """Make sure the transport is initialized and open."""
+ if not self._transport:
170
self._transport = self._init_thrift_transport()
171
+ if not self._transport.isOpen():
172
self._transport.open()
173
return self._client
174
0 commit comments