Skip to content

Commit fc918d6

Browse files
committed
fixed type of return value in get_session_id_hex() in thrift backend
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent 695a07d commit fc918d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/databricks/sql/thrift_backend.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
convert_column_based_set_to_arrow_table,
4242
)
4343
from databricks.sql.types import SSLOptions
44+
from typing import Optional
4445

4546
logger = logging.getLogger(__name__)
4647

@@ -583,7 +584,7 @@ def open_session(self, session_configuration, catalog, schema):
583584
self._transport.close()
584585
raise
585586

586-
def get_session_id_hex(self) -> str:
587+
def get_session_id_hex(self) -> Optional[str]:
587588
return self._session_id_hex
588589

589590
def close_session(self, session_handle) -> None:

0 commit comments

Comments
 (0)