@@ -318,7 +318,6 @@ def __init__(
318
318
319
319
self ._sea_client = sea_client
320
320
self ._statement_id = statement_id
321
- self ._total_chunk_count = total_chunk_count
322
321
323
322
logger .debug (
324
323
"SeaCloudFetchQueue: Initialize CloudFetch loader for statement {}, total chunks: {}" .format (
@@ -342,12 +341,6 @@ def __init__(
342
341
343
342
# Initialize table and position
344
343
self .table = self ._create_next_table ()
345
- if self .table :
346
- logger .debug (
347
- "SeaCloudFetchQueue: Initial table created with {} rows" .format (
348
- self .table .num_rows
349
- )
350
- )
351
344
352
345
def _convert_to_thrift_link (self , link : "ExternalLink" ) -> TSparkArrowResultLink :
353
346
"""Convert SEA external links to Thrift format for compatibility with existing download manager."""
@@ -357,7 +350,6 @@ def _convert_to_thrift_link(self, link: "ExternalLink") -> TSparkArrowResultLink
357
350
358
351
# Parse the ISO format expiration time
359
352
expiry_time = int (dateutil .parser .parse (link .expiration ).timestamp ())
360
-
361
353
return TSparkArrowResultLink (
362
354
fileLink = link .external_link ,
363
355
expiryTime = expiry_time ,
@@ -369,9 +361,10 @@ def _convert_to_thrift_link(self, link: "ExternalLink") -> TSparkArrowResultLink
369
361
370
362
def _progress_chunk_link (self ):
371
363
"""Progress to the next chunk link."""
364
+
372
365
next_chunk_index = self ._current_chunk_link .next_chunk_index
373
- self ._current_chunk_link = None
374
366
367
+ self ._current_chunk_link = None
375
368
try :
376
369
self ._current_chunk_link = self ._sea_client .get_chunk_link (
377
370
self ._statement_id , next_chunk_index
@@ -382,6 +375,9 @@ def _progress_chunk_link(self):
382
375
next_chunk_index , e
383
376
)
384
377
)
378
+ logger .debug (
379
+ f"SeaCloudFetchQueue: Progressed to link for chunk { next_chunk_index } : { self ._current_chunk_link } "
380
+ )
385
381
386
382
def _create_next_table (self ) -> Union ["pyarrow.Table" , None ]:
387
383
"""Create next table by retrieving the logical next downloaded file."""
0 commit comments