Skip to content

Commit 5a43686

Browse files
return None in case of empty respose
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent d882c6e commit 5a43686

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,8 @@ def __init__(
150150
initial_links = result_data.external_links or []
151151
first_link = next((l for l in initial_links if l.chunk_index == 0), None)
152152
if not first_link:
153-
raise ServerOperationError(
154-
"No initial link found for chunk 0",
155-
{
156-
"operation-id": statement_id,
157-
"diagnostic-info": None,
158-
},
159-
)
153+
# possibly an empty response
154+
return None
160155

161156
# Track the current chunk we're processing
162157
self._current_chunk_link = first_link

0 commit comments

Comments
 (0)