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: [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]