Skip to content

Commit 7c360d1

Browse files
use total_chunk_cound > 0
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent dd009df commit 7c360d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,7 @@ def __init__(
345345
# Track the current chunk we're processing
346346
self._current_chunk_index = 0
347347

348-
if total_chunk_count < 1:
349-
# an empty response
350-
self.link_fetcher = None
351-
else:
348+
if total_chunk_count > 0:
352349
self.link_fetcher = LinkFetcher(
353350
download_manager=self.download_manager,
354351
backend=sea_client,
@@ -357,6 +354,9 @@ def __init__(
357354
total_chunk_count=total_chunk_count,
358355
)
359356
self.link_fetcher.start()
357+
else:
358+
# an empty response
359+
self.link_fetcher = None
360360

361361
# Initialize table and position
362362
self.table = self._create_next_table()

0 commit comments

Comments
 (0)