File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -69,3 +69,6 @@ def remaining_rows(self) -> List[List[str]]:
69
69
slice = self .data_array [self .cur_row_index :]
70
70
self .cur_row_index += len (slice )
71
71
return slice
72
+
73
+ def close (self ):
74
+ return
Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ def next_n_rows(self, num_rows: int):
51
51
def remaining_rows (self ):
52
52
pass
53
53
54
+ @abstractmethod
55
+ def close (self ):
56
+ pass
57
+
54
58
55
59
class ThriftResultSetQueueFactory (ABC ):
56
60
@staticmethod
@@ -163,6 +167,9 @@ def remaining_rows(self):
163
167
self .cur_row_index += slice .num_rows
164
168
return slice
165
169
170
+ def close (self ):
171
+ return
172
+
166
173
167
174
class ArrowQueue (ResultSetQueue ):
168
175
def __init__ (
@@ -200,6 +207,9 @@ def remaining_rows(self) -> "pyarrow.Table":
200
207
self .cur_row_index += slice .num_rows
201
208
return slice
202
209
210
+ def close (self ):
211
+ return
212
+
203
213
204
214
class CloudFetchQueue (ResultSetQueue ):
205
215
def __init__ (
@@ -352,6 +362,9 @@ def _create_empty_table(self) -> "pyarrow.Table":
352
362
# Create a 0-row table with just the schema bytes
353
363
return create_arrow_table_from_arrow_file (self .schema_bytes , self .description )
354
364
365
+ def close (self ):
366
+ self .download_manager ._shutdown_manager ()
367
+
355
368
356
369
def _bound (min_x , max_x , x ):
357
370
"""Bound x by [min_x, max_x]
You can’t perform that action at this time.
0 commit comments