Skip to content

Commit 8438ab8

Browse files
committed
Changed name of fn
1 parent 605d756 commit 8438ab8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/databricks/sql/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def get_session_id(self):
227227
return self.thrift_backend.handle_to_id(self._session_handle)
228228

229229
def get_session_protocol_version(self):
230-
return self.thrift_backend.handle_to_protocol_version(self._session_handle)
230+
return self.thrift_backend.extract_protocol_version_from_handle(self._session_handle)
231231

232232
def get_session_id_hex(self):
233233
return self.thrift_backend.handle_to_hex_id(self._session_handle)

src/databricks/sql/thrift_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ def handle_to_id(session_handle):
10041004
return session_handle.sessionId.guid
10051005

10061006
@staticmethod
1007-
def handle_to_protocol_version(session_handle):
1007+
def extract_protocol_version_from_handle(session_handle):
10081008
return session_handle.serverProtocolVersion
10091009

10101010
@staticmethod

0 commit comments

Comments
 (0)