Skip to content

Commit 2875357

Browse files
authored
Streaming executor fixes #4 (ray-project#32882)
1 parent 0c02ae8 commit 2875357

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

python/ray/data/tests/test_bulk_executor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def test_actor_strategy(ray_start_10_cpus_shared):
125125

126126
def test_new_execution_backend_invocation(ray_start_10_cpus_shared):
127127
DatasetContext.get_current().new_execution_backend = True
128+
DatasetContext.get_current().use_streaming_executor = False
128129
# Read-only: will use legacy executor for now.
129130
ds = ray.data.range(10)
130131
assert ds.take_all() == list(range(10))

python/ray/data/tests/test_dataset.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,12 +382,13 @@ def test_zip_different_num_blocks_split_smallest(
382382
[{str(i): i for i in range(num_cols1, num_cols1 + num_cols2)}] * n,
383383
parallelism=num_blocks2,
384384
)
385-
ds = ds1.zip(ds2)
385+
ds = ds1.zip(ds2).fully_executed()
386+
num_blocks = ds._plan._snapshot_blocks.executed_num_blocks()
386387
assert ds.take() == [{str(i): i for i in range(num_cols1 + num_cols2)}] * n
387388
if should_invert:
388-
assert ds.num_blocks() == num_blocks2
389+
assert num_blocks == num_blocks2
389390
else:
390-
assert ds.num_blocks() == num_blocks1
391+
assert num_blocks == num_blocks1
391392

392393

393394
def test_zip_pandas(ray_start_regular_shared):

0 commit comments

Comments
 (0)