Skip to content

Commit bbef428

Browse files
remove lazy import of ThriftResultSet
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 0e1f410 commit bbef428

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/databricks/sql/backend/thrift_backend.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,8 +1049,6 @@ def get_catalogs(
10491049
max_bytes: int,
10501050
cursor: Cursor,
10511051
) -> "ResultSet":
1052-
from databricks.sql.result_set import ThriftResultSet
1053-
10541052
thrift_handle = session_id.to_thrift_handle()
10551053
if not thrift_handle:
10561054
raise ValueError("Not a valid Thrift session ID")
@@ -1083,8 +1081,6 @@ def get_schemas(
10831081
catalog_name=None,
10841082
schema_name=None,
10851083
) -> "ResultSet":
1086-
from databricks.sql.result_set import ThriftResultSet
1087-
10881084
thrift_handle = session_id.to_thrift_handle()
10891085
if not thrift_handle:
10901086
raise ValueError("Not a valid Thrift session ID")
@@ -1121,8 +1117,6 @@ def get_tables(
11211117
table_name=None,
11221118
table_types=None,
11231119
) -> "ResultSet":
1124-
from databricks.sql.result_set import ThriftResultSet
1125-
11261120
thrift_handle = session_id.to_thrift_handle()
11271121
if not thrift_handle:
11281122
raise ValueError("Not a valid Thrift session ID")
@@ -1161,8 +1155,6 @@ def get_columns(
11611155
table_name=None,
11621156
column_name=None,
11631157
) -> "ResultSet":
1164-
from databricks.sql.result_set import ThriftResultSet
1165-
11661158
thrift_handle = session_id.to_thrift_handle()
11671159
if not thrift_handle:
11681160
raise ValueError("Not a valid Thrift session ID")

0 commit comments

Comments
 (0)