yigal-rozenberg commented on code in PR #1614: URL: https://github.com/apache/iceberg-python/pull/1614#discussion_r1944993648
########## pyiceberg/table/__init__.py: ########## @@ -1624,6 +1628,19 @@ def to_ray(self) -> ray.data.dataset.Dataset: return ray.data.from_arrow(self.to_arrow()) + def to_polars(self) -> pl.DataFrame: Review Comment: after a quick check, this is and easy addition. I will add the new method to the Table class, which would return a Polars LazyFrame. ``` def to_polars(self) -> pl.LazyFrame: """Lazily read from this Apache Iceberg table. Returns: pl.LazyFrame: Unmaterialized Polars LazyFrame created from the Iceberg table """ import polars as pl return pl.scan_iceberg(self) ``` -- 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