File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/databricks/sql/backend/sea Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,20 +51,20 @@ def build_queue(
51
51
class JsonQueue (ResultSetQueue ):
52
52
"""Queue implementation for JSON_ARRAY format data."""
53
53
54
- def __init__ (self , data_array ):
54
+ def __init__ (self , data_array : Optional [ List [ List [ str ]]] ):
55
55
"""Initialize with JSON array data."""
56
56
self .data_array = data_array or []
57
57
self .cur_row_index = 0
58
58
self .num_rows = len (self .data_array )
59
59
60
- def next_n_rows (self , num_rows ) :
60
+ def next_n_rows (self , num_rows : int ) -> List [ List [ str ]] :
61
61
"""Get the next n rows from the data array."""
62
62
length = min (num_rows , self .num_rows - self .cur_row_index )
63
63
slice = self .data_array [self .cur_row_index : self .cur_row_index + length ]
64
64
self .cur_row_index += length
65
65
return slice
66
66
67
- def remaining_rows (self ):
67
+ def remaining_rows (self ) -> List [ List [ str ]] :
68
68
"""Get all remaining rows from the data array."""
69
69
slice = self .data_array [self .cur_row_index :]
70
70
self .cur_row_index += len (slice )
You can’t perform that action at this time.
0 commit comments