Skip to content

Commit b678e9b

Browse files
Update src/databricks/sql/utils.py
"self.download_manager is unconditionally used later, so must be created. Looks this part of code is totally not covered with tests 🤔" Co-authored-by: Levko Kravets <[email protected]> Signed-off-by: wyattscarpenter <[email protected]>
1 parent cb81272 commit b678e9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/databricks/sql/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ def __init__(
168168
result_link.startRowOffset, result_link.rowCount
169169
)
170170
)
171-
self.download_manager = ResultFileDownloadManager(
172-
self.max_download_threads, self.lz4_compressed
173-
)
174-
self.download_manager.add_file_links(result_links)
171+
self.download_manager = ResultFileDownloadManager(
172+
self.max_download_threads, self.lz4_compressed
173+
)
174+
self.download_manager.add_file_links(result_links or [])
175175

176176
self.table = self._create_next_table()
177177
self.table_row_index = 0

0 commit comments

Comments
 (0)