Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add is_open to check transport of connection #469

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
Add is_open to check transport of connection
Signed-off-by: Sihyeon Jang <[email protected]>
  • Loading branch information
sihyeonn committed Dec 6, 2023
commit 5ec63f9300fe424ac9972c31e388cf2d4150ccdd
3 changes: 3 additions & 0 deletions pyhive/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ def client(self):
def sessionHandle(self):
return self._sessionHandle

def is_open(self):
return self._transport.isOpen()

def rollback(self):
raise NotSupportedError("Hive does not have transactions") # pragma: no cover

Expand Down