Skip to content
Merged
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
8 changes: 2 additions & 6 deletions tests/benchmark/read_gbq_colab/filter_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import pathlib

import benchmark.utils as utils
import pytest

import bigframes.session

Expand All @@ -40,11 +39,8 @@ def filter_output(

# It's possible we don't have any pages at all, since we filtered out all
# matching rows.
if rows == 0:
with pytest.raises(StopIteration):
next(iter(df_filtered.to_pandas_batches(page_size=PAGE_SIZE)))
else:
next(iter(df_filtered.to_pandas_batches(page_size=PAGE_SIZE)))
first_page = next(iter(df_filtered.to_pandas_batches(page_size=PAGE_SIZE)))
assert len(first_page.index) <= rows


if __name__ == "__main__":
Expand Down