This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 1ab43a9192 Python: Inline the PyArrow import (#6827)
1ab43a9192 is described below

commit 1ab43a919297851e8d581bcb1adb7432c82270b4
Author: Fokko Driesprong <[email protected]>
AuthorDate: Wed Feb 15 10:25:33 2023 +0100

    Python: Inline the PyArrow import (#6827)
---
 python/pyiceberg/table/__init__.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/python/pyiceberg/table/__init__.py 
b/python/pyiceberg/table/__init__.py
index 4e5d4fd262..0bce2a4e86 100644
--- a/python/pyiceberg/table/__init__.py
+++ b/python/pyiceberg/table/__init__.py
@@ -45,7 +45,6 @@ from pyiceberg.expressions import (
 )
 from pyiceberg.expressions.visitors import inclusive_projection
 from pyiceberg.io import FileIO, load_file_io
-from pyiceberg.io.pyarrow import project_table
 from pyiceberg.manifest import (
     DataFile,
     ManifestContent,
@@ -385,6 +384,8 @@ class DataScan(TableScan):
             )
 
     def to_arrow(self) -> pa.Table:
+        from pyiceberg.io.pyarrow import project_table
+
         return project_table(
             self.plan_files(), self.table, self.row_filter, self.projection(), 
case_sensitive=self.case_sensitive
         )

Reply via email to