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 0135d33 commit cc9db8bCopy full SHA for cc9db8b
src/databricks/sql/backend/sea/queue.py
@@ -53,9 +53,9 @@ class JsonQueue(ResultSetQueue):
53
54
def __init__(self, data_array):
55
"""Initialize with JSON array data."""
56
- self.data_array = data_array
+ self.data_array = data_array or []
57
self.cur_row_index = 0
58
- self.num_rows = len(data_array) if data_array else 0
+ self.num_rows = len(self.data_array)
59
60
def next_n_rows(self, num_rows):
61
"""Get the next n rows from the data array."""
0 commit comments