jayceslesar commented on issue #1200:
URL: 
https://github.com/apache/iceberg-python/issues/1200#issuecomment-2839905449

   Looks like the following will also work directly from a table object:
   
   ```py
   from pyiceberg import catalog
   from pyarrow.fs import FileSelector
   
   CATALOG = catalog.load_catalog(**{"type": "glue"})
   
   table = CATALOG.load_table("my_table_name")
   
   scheme, netloc, path = table.io.parse_location(table.location())
   fs = table.io.fs_by_scheme(scheme, netloc)
   selector = FileSelector(path, recursive=True)
   files = fs.get_file_info(selector)
   print(files)
   ```
   Note that it does take a LOOOOOOONG time if your table has many files 😅 


-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to