Skip to content

Commit

Permalink
Fix for LazyBlockList refactor. (ray-project#19333)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkzinzow authored Oct 13, 2021
1 parent 53e791d commit df6d06b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/ray/data/tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,17 +1316,17 @@ def test_parquet_read_parallel_meta_fetch(ray_start_regular_shared, fs,
data_path, filesystem=fs, parallelism=parallelism)

# Test metadata-only parquet ops.
assert len(ds._blocks._blocks) == 1
assert ds._blocks._num_computed() == 1
assert ds.count() == num_dfs * 3
assert ds.size_bytes() > 0
assert ds.schema() is not None
input_files = ds.input_files()
assert len(input_files) == num_dfs, input_files
assert len(ds._blocks._blocks) == 1
assert ds._blocks._num_computed() == 1

# Forces a data read.
values = [s["one"] for s in ds.take(limit=3 * num_dfs)]
assert len(ds._blocks._blocks) == parallelism
assert ds._blocks._num_computed() == parallelism
assert sorted(values) == list(range(3 * num_dfs))


Expand Down

0 comments on commit df6d06b

Please sign in to comment.