gwindes commented on issue #584: URL: https://github.com/apache/iceberg-python/issues/584#issuecomment-2040825581
Further research shows that when I use [daft](https://www.getdaft.io/projects/docs/en/latest/user_guide/integrations/iceberg.html#reading-a-table) that I'm able to read and use the `to_arrow()` functionality just fine. Basic script: ``` from pyiceberg.catalog import load_catalog import daft print(f"Daft version: {daft.__version__}") warehouse_path = "./warehouse" catalog = load_catalog(**{ "uri": f"sqlite:///{warehouse_path}/pyiceberg-catalog.db", "warehouse": f"file://{warehouse_path}" }) table = catalog.load_table("A1B2.A1-301") df = daft.read_iceberg(table) print(df) print(df.to_arrow()) ``` Resulting successful output: ``` Daft version: 0.2.20 ╭──────────────────────────┬──────────────────────────┬──────────────────────────┬───────╮ │ TEST:A1B2.RAW.ABC-GG-1-A ┆ TEST:A1B2.RAW.ABC-GG-1-B ┆ TEST:A1B2.RAW.ABC-GG-1-C ┆ time │ │ --- ┆ --- ┆ --- ┆ --- │ │ Float64 ┆ Float64 ┆ Float64 ┆ Int64 │ ╰──────────────────────────┴──────────────────────────┴──────────────────────────┴───────╯ pyarrow.Table TEST:A1B2.RAW.ABC-GG-1-A: double TEST:A1B2.RAW.ABC-GG-1-B: double TEST:A1B2.RAW.ABC-GG-1-C: double time: int64 ---- TEST:A1B2.RAW.ABC-GG-1-A: [[0,1,2,3,4,5,6,7,8,9]] TEST:A1B2.RAW.ABC-GG-1-B: [[0,1.1,2.2,3.3,4.4,5.5,6.6,7.7,8.8,9.9]] TEST:A1B2.RAW.ABC-GG-1-C: [[0,1.1,2.2,3.3,4.4,5.5,6.6,7.7,8.8,9.9]] time: [[1702090722998897808,1702090722998947809,1702090722998997809,1702090722999047809,1702090722999097809,1702090722999147809,1702090722999197809,1702090722999247809,1702090722999297809,1702090722999347809]] ``` -- 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