We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd009df commit 7c360d1Copy full SHA for 7c360d1
src/databricks/sql/backend/sea/queue.py
@@ -345,10 +345,7 @@ def __init__(
345
# Track the current chunk we're processing
346
self._current_chunk_index = 0
347
348
- if total_chunk_count < 1:
349
- # an empty response
350
- self.link_fetcher = None
351
- else:
+ if total_chunk_count > 0:
352
self.link_fetcher = LinkFetcher(
353
download_manager=self.download_manager,
354
backend=sea_client,
@@ -357,6 +354,9 @@ def __init__(
357
total_chunk_count=total_chunk_count,
358
355
)
359
356
self.link_fetcher.start()
+ else:
+ # an empty response
+ self.link_fetcher = None
360
361
# Initialize table and position
362
self.table = self._create_next_table()
0 commit comments