Skip to content

Commit bf262e6

Browse files
committed
Add bound_filter kwarg to TableScan
1 parent 02f8e22 commit bf262e6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pyiceberg/table/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,7 @@ def __init__(
14951495
snapshot_id: Optional[int] = None,
14961496
options: Properties = EMPTY_DICT,
14971497
limit: Optional[int] = None,
1498+
bound_filter: Optional[BooleanExpression] = None
14981499
):
14991500
self.table_metadata = table_metadata
15001501
self.io = io
@@ -1504,7 +1505,7 @@ def __init__(
15041505
self.snapshot_id = snapshot_id
15051506
self.options = options
15061507
self.limit = limit
1507-
self.bound_filter = bind(self.table_metadata.schema(), rewrite_not(self.row_filter), self.case_sensitive)
1508+
self.bound_filter = bound_filter or bind(self.table_metadata.schema(), rewrite_not(self.row_filter), self.case_sensitive)
15081509

15091510
def snapshot(self) -> Optional[Snapshot]:
15101511
if self.snapshot_id:

0 commit comments

Comments
 (0)