Skip to content

Commit 00db613

Browse files
default link_fetcher to None
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 2ca7c2b commit 00db613

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/databricks/sql/backend/sea/queue.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ def __init__(
343343
# Track the current chunk we're processing
344344
self._current_chunk_index = 0
345345

346+
self.link_fetcher = None # for empty responses, we do not need a link fetcher
346347
if total_chunk_count > 0:
347348
self.link_fetcher = LinkFetcher(
348349
download_manager=self.download_manager,
@@ -352,9 +353,6 @@ def __init__(
352353
total_chunk_count=total_chunk_count,
353354
)
354355
self.link_fetcher.start()
355-
else:
356-
# an empty response
357-
self.link_fetcher = None
358356

359357
# Initialize table and position
360358
self.table = self._create_next_table()

0 commit comments

Comments
 (0)