Skip to content

Commit

Permalink
Changed name of fn
Browse files Browse the repository at this point in the history
Signed-off-by: nithinkdb <[email protected]>
  • Loading branch information
nithinkdb committed Sep 29, 2023
1 parent 26a98c6 commit 52f7abb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/databricks/sql/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def get_session_id(self):
return self.thrift_backend.handle_to_id(self._session_handle)

def get_session_protocol_version(self):
return self.thrift_backend.handle_to_protocol_version(self._session_handle)
return self.thrift_backend.extract_protocol_version_from_handle(self._session_handle)

def get_session_id_hex(self):
return self.thrift_backend.handle_to_hex_id(self._session_handle)
Expand Down
2 changes: 1 addition & 1 deletion src/databricks/sql/thrift_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ def handle_to_id(session_handle):
return session_handle.sessionId.guid

@staticmethod
def handle_to_protocol_version(session_handle):
def extract_protocol_version_from_handle(session_handle):
return session_handle.serverProtocolVersion

@staticmethod
Expand Down

0 comments on commit 52f7abb

Please sign in to comment.