Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions paimon-python/pypaimon/tests/deferred_blob_resolve_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,10 @@ def test_iterator_passes_remaining_limit_across_splits(self):
)
counting_file_io = _BlobCountingFileIO(table.file_io)
table.file_io = counting_file_io
splits = table.new_read_builder().new_scan().plan().splits()
read_builder = table.new_read_builder().with_projection(
["sample_id", "payload", "score"]
).with_limit(2)
splits = read_builder.new_scan().plan().splits()

rows = list(read_builder.new_read().to_iterator(splits))

Expand All @@ -305,15 +305,16 @@ def test_iterator_applies_limit_after_auth_filter(self):
auth_result = _RejectScoreOneAuthResult()
splits = [
QueryAuthSplit(split, auth_result)
for split in read_builder.new_scan().plan().splits()
for split in table.new_read_builder().new_scan().plan().splits()
]

scores = [
row.get_field(2)
for row in read_builder.new_read().to_iterator(splits)
]

self.assertEqual([0, 2], scores)
self.assertEqual(2, len(scores))
self.assertNotIn(1, scores)
self.assertEqual(2, counting_file_io.blobs_fetched)

def test_auth_blob_filter_keeps_eager_resolution(self):
Expand Down
Loading