Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdeb93a0

Browse files
Merge branch 'main' into backend-refactors
2 parentsbbef428 +576eafc commitdeb93a0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎src/databricks/sql/utils.py‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ def next_n_rows(self, num_rows: int):
4747
defremaining_rows(self):
4848
pass
4949

50+
@abstractmethod
51+
defclose(self):
52+
pass
53+
5054

5155
classResultSetQueueFactory(ABC):
5256
@staticmethod
@@ -159,6 +163,9 @@ def remaining_rows(self):
159163
self.cur_row_index+=slice.num_rows
160164
returnslice
161165

166+
defclose(self):
167+
return
168+
162169

163170
classArrowQueue(ResultSetQueue):
164171
def__init__(
@@ -195,6 +202,9 @@ def remaining_rows(self) -> "pyarrow.Table":
195202
self.cur_row_index+=slice.num_rows
196203
returnslice
197204

205+
defclose(self):
206+
return
207+
198208

199209
classCloudFetchQueue(ResultSetQueue):
200210
def__init__(
@@ -347,6 +357,9 @@ def _create_empty_table(self) -> "pyarrow.Table":
347357
# Create a 0-row table with just the schema bytes
348358
returncreate_arrow_table_from_arrow_file(self.schema_bytes,self.description)
349359

360+
defclose(self):
361+
self.download_manager._shutdown_manager()
362+
350363

351364
ExecuteResponse=namedtuple(
352365
"ExecuteResponse",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp