Skip to content

Commit 448476b

Browse files
ensure empty data allowed
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent ad45046 commit 448476b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/databricks/sql/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ def build_queue(
135135
Returns:
136136
ResultSetQueue: The appropriate queue for the result data
137137
"""
138-
if sea_result_data.data:
138+
if sea_result_data.data is not None:
139139
# INLINE disposition with JSON_ARRAY format
140140
return JsonQueue(sea_result_data.data)
141-
elif sea_result_data.external_links:
141+
elif sea_result_data.external_links is not None:
142142
# EXTERNAL_LINKS disposition (not implemented yet)
143143
raise NotImplementedError("EXTERNAL_LINKS disposition is not supported yet")
144144
else:

0 commit comments

Comments
 (0)