JonasJ-ap commented on code in PR #7148:
URL: https://github.com/apache/iceberg/pull/7148#discussion_r1144191606


##########
python/pyiceberg/table/__init__.py:
##########
@@ -415,3 +416,8 @@ def to_duckdb(self, table_name: str, connection: 
Optional[DuckDBPyConnection] =
         con.register(table_name, self.to_arrow())
 
         return con
+
+    def to_ray(self) -> ray.data.dataset.Dataset:
+        import ray
+
+        return ray.data.from_arrow(self.to_arrow())

Review Comment:
   I think so, since currently all the connections are based on `to_arrow()`. I 
draw the above conclusion based on the discussion here: 
https://github.com/apache/iceberg/issues/6505#issuecomment-1453357137, 
https://github.com/apache/iceberg/issues/6505#issuecomment-1453505015
   
   An out-of-memory error occurs when converting a large table to duckdb on an 
EC2 instance with insufficient memory.
   
   



-- 
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