sam-leonid commented on issue #548:
URL: https://github.com/apache/iceberg-python/issues/548#issuecomment-3696719225

   Variant of 
https://github.com/apache/iceberg-python/issues/548#issuecomment-2426506481 
worked using new version pyiceberg (v 0.9.1):
   
   
   ```python
   
   table = catalog.load_table(("default", "mq_log10"))
   
   scan = table.scan()
   file_scan_tasks = scan.plan_files()
   
   partition_num = 20
   new_file_scan_tasks = []
   for task in file_scan_tasks:
       if task.file.partition[0] == partition_num:
           new_file_scan_tasks.append(task)
   
   arrow_scan = ArrowScan(
       table_metadata=scan.table_metadata,
       io=scan.io,
       row_filter=scan.row_filter,
       projected_schema=scan.table_metadata.schema(),
       case_sensitive=scan.case_sensitive,
       limit=scan.limit,
   )
   
   pa_data_table = arrow_scan.to_table(new_file_scan_tasks)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to