@@ -135,21 +135,23 @@ def __init__(
135135 self ,
136136 max_download_threads : int ,
137137 ssl_options : SSLOptions ,
138+ schema_bytes : bytes ,
138139 lz4_compressed : bool = True ,
139140 description : Optional [List [Tuple [Any , ...]]] = None ,
140141 ):
141142 """
142143 Initialize the base CloudFetchQueue.
143144
144145 Args:
145- schema_bytes: Arrow schema bytes
146146 max_download_threads: Maximum number of download threads
147147 ssl_options: SSL options for downloads
148+ schema_bytes: Arrow schema bytes
148149 lz4_compressed: Whether the data is LZ4 compressed
149150 description: Column descriptions
150151 """
151152 self .lz4_compressed = lz4_compressed
152153 self .description = description
154+ self .schema_bytes = schema_bytes
153155 self ._ssl_options = ssl_options
154156 self .max_download_threads = max_download_threads
155157
@@ -191,7 +193,6 @@ def next_n_rows(self, num_rows: int) -> "pyarrow.Table":
191193 """Get up to the next n rows of the cloud fetch Arrow dataframes."""
192194 if not self .table :
193195 # Return empty pyarrow table to cause retry of fetch
194- logger .info ("SeaCloudFetchQueue: No table available, returning empty table" )
195196 return self ._create_empty_table ()
196197
197198 logger .info ("SeaCloudFetchQueue: Retrieving up to {} rows" .format (num_rows ))
@@ -309,6 +310,7 @@ def __init__(
309310 super ().__init__ (
310311 max_download_threads = max_download_threads ,
311312 ssl_options = ssl_options ,
313+ schema_bytes = b"" ,
312314 lz4_compressed = lz4_compressed ,
313315 description = description ,
314316 )
@@ -435,11 +437,11 @@ def __init__(
435437 super ().__init__ (
436438 max_download_threads = max_download_threads ,
437439 ssl_options = ssl_options ,
440+ schema_bytes = schema_bytes ,
438441 lz4_compressed = lz4_compressed ,
439442 description = description ,
440443 )
441444
442- self .schema_bytes = schema_bytes
443445 self .start_row_index = start_row_offset
444446 self .result_links = result_links or []
445447
0 commit comments