@@ -135,21 +135,23 @@ def __init__(
135
135
self ,
136
136
max_download_threads : int ,
137
137
ssl_options : SSLOptions ,
138
+ schema_bytes : bytes ,
138
139
lz4_compressed : bool = True ,
139
140
description : Optional [List [Tuple [Any , ...]]] = None ,
140
141
):
141
142
"""
142
143
Initialize the base CloudFetchQueue.
143
144
144
145
Args:
145
- schema_bytes: Arrow schema bytes
146
146
max_download_threads: Maximum number of download threads
147
147
ssl_options: SSL options for downloads
148
+ schema_bytes: Arrow schema bytes
148
149
lz4_compressed: Whether the data is LZ4 compressed
149
150
description: Column descriptions
150
151
"""
151
152
self .lz4_compressed = lz4_compressed
152
153
self .description = description
154
+ self .schema_bytes = schema_bytes
153
155
self ._ssl_options = ssl_options
154
156
self .max_download_threads = max_download_threads
155
157
@@ -191,7 +193,6 @@ def next_n_rows(self, num_rows: int) -> "pyarrow.Table":
191
193
"""Get up to the next n rows of the cloud fetch Arrow dataframes."""
192
194
if not self .table :
193
195
# Return empty pyarrow table to cause retry of fetch
194
- logger .info ("SeaCloudFetchQueue: No table available, returning empty table" )
195
196
return self ._create_empty_table ()
196
197
197
198
logger .info ("SeaCloudFetchQueue: Retrieving up to {} rows" .format (num_rows ))
@@ -309,6 +310,7 @@ def __init__(
309
310
super ().__init__ (
310
311
max_download_threads = max_download_threads ,
311
312
ssl_options = ssl_options ,
313
+ schema_bytes = b"" ,
312
314
lz4_compressed = lz4_compressed ,
313
315
description = description ,
314
316
)
@@ -435,11 +437,11 @@ def __init__(
435
437
super ().__init__ (
436
438
max_download_threads = max_download_threads ,
437
439
ssl_options = ssl_options ,
440
+ schema_bytes = schema_bytes ,
438
441
lz4_compressed = lz4_compressed ,
439
442
description = description ,
440
443
)
441
444
442
- self .schema_bytes = schema_bytes
443
445
self .start_row_index = start_row_offset
444
446
self .result_links = result_links or []
445
447
0 commit comments