diff --git a/src/databricks/sql/client.py b/src/databricks/sql/client.py index 06815da6..a05ece91 100644 --- a/src/databricks/sql/client.py +++ b/src/databricks/sql/client.py @@ -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) diff --git a/src/databricks/sql/thrift_backend.py b/src/databricks/sql/thrift_backend.py index 8562a887..eb42ff0b 100644 --- a/src/databricks/sql/thrift_backend.py +++ b/src/databricks/sql/thrift_backend.py @@ -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