Skip to content

[Data] Add task-based shuffle v2 support for sort - #64875

Merged
owenowenisme merged 37 commits into
ray-project:masterfrom
400Ping:data/sort-shuffle-v2
Sep 25, 2026
Merged

owenowenisme merged 37 commits into
ray-project:masterfrom
400Ping:data/sort-shuffle-v2

Conversation

@400Ping

@400Ping 400Ping commented Jul 20, 2026 •

Copy link
Copy Markdown
Member

Description

This PR adds task-based shuffle v2 support for Dataset.sort(). With DataContext.shuffle_strategy = ShuffleStrategy.HASH_SHUFFLE_V2, sort() is planned as:

SortSamplingOp -> SortShuffleMapOp -> ShuffleReduceOp
  • SortSamplingOp samples every input block as it arrives (fixed SORT_SAMPLE_ROWS_PER_BLOCK rows per block), retains the original bundles, computes range boundaries with the existing SortTaskSpec.get_boundaries_from_samples, and then forwards the untouched bundles downstream. User-provided boundaries skip this operator.
  • SortShuffleMapOp subclasses ShuffleMapOp. It reads the boundaries from the sampling op on first input, builds the range partition function, and otherwise reuses the shared shuffle-map machinery (per-node input batching via shuffle_input_batch_bytes, partition staging, etc.).
  • ShuffleReduceOp runs the sorted merge with preserve_partition_order=True; empty partitions keep their schema.
  • Output partition count follows the estimated number of input blocks (same rule as the hash-shuffle planners), falling back to default_hash_shuffle_parallelism when no estimate is available.

Local benchmark

Benchmark: release/nightly_tests/dataset/sort_benchmark.py --num-partitions {32,64}

Input Output partitions (v1 / v2) v1 median v2 median Runtime delta v1 object-store peak (median) v2 object-store peak (median) Memory delta v1 spill (median) v2 spill (median)
5.96 GiB 32 / 32 9.750 s 14.385 s +47.5% 12.170 GB 6.088 GB -50.0% 0.000 GB 0.000 GB
11.92 GiB 64 / 64 41.386 s 26.950 s -34.9% 15.647 GB 11.974 GB -23.5% 32.033 GB 0.000 GB

Raw runtimes:

5.96 GiB v1:  9.845 s, 9.750 s, 9.575 s
5.96 GiB v2: 15.960 s, 14.245 s, 14.385 s

11.92 GiB v1: 31.783 s, 41.742 s, 41.386 s
11.92 GiB v2: 26.950 s, 26.990 s, 26.397 s

Additional information

Shuffle v2 is now the default

  • splits reduce output to target_max_block_size (splits of a partition are
    emitted in order under the same partition key);
  • drops a fused map's empty output blocks, matching an unfused MapOperator,
    which bundles empty inputs with non-empty ones (test_map_batches_combine_empty_blocks);
  • treats ShuffleMapOp as an all-to-all op in the rate-based cluster
    autoscaler's object-store padding check;
  • skips SortSamplingOp entirely when there is a single output partition.

@400Ping

400Ping commented Jul 22, 2026

Copy link
Copy Markdown
Member Author

the microcheck error is unrelated to this PR

@richardliaw richardliaw added the data Ray Data-related issues label Jul 23, 2026
@400Ping 400Ping changed the title [WIP][Data] Add task-based shuffle v2 support for sort [Data] Add task-based shuffle v2 support for sort Jul 24, 2026
@400Ping
400Ping marked this pull request as ready for review July 24, 2026 15:54
@400Ping
400Ping requested a review from a team as a code owner July 24, 2026 15:54

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the task-based shuffle v2 path for sorting, implementing SortShuffleMapOp with online range-boundary sampling and integrating it into the physical planner. It also updates ShuffleReduceOp to optionally preserve partition order and modifies the shuffle map task to handle compatible but non-identical schemas during concatenation. The review feedback highlights two important improvement opportunities: dynamically scaling the fallback tuple in _set_boundaries to support multi-column sort keys, and optimizing table concatenation in _shuffle_map_task by attempting a fast-path pa.concat_tables before falling back to type promotion.

@400Ping 400Ping self-assigned this Jul 24, 2026
@400Ping
400Ping requested a review from owenowenisme July 24, 2026 16:07
@400Ping
400Ping requested a review from bveeramani July 24, 2026 16:38
@owenowenisme

Copy link
Copy Markdown
Member

On second thought, I think we should sample all the blocks or we might get unexpected data skews. Could you change the pr to sample all blocks before doing range partitions?

Signed-off-by: 400Ping <[email protected]>

# Conflicts:
#	python/ray/data/_internal/execution/operators/shuffle_operators/shuffle_reduce_operator.py
#	python/ray/data/_internal/logical/rules/operator_fusion.py
#	python/ray/data/_internal/planner/plan_all_to_all_op.py
@400Ping

400Ping commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

Hey @owenowenisme please take a look when you have time. Sorry for the late fix, I was at Beijing giving a talk in Community Over Code Asia.

@AarryaSaraf

Copy link
Copy Markdown
Contributor

Hi, thanks for your contribution! Do you have any evidence backing up your 'independent of data size' claim? At the very least it grows with partition count.

@AarryaSaraf

Copy link
Copy Markdown
Contributor

For v2 why is sampling rule independent of num partitions and dependent on the number read instead? Are we assuming these numbers are similar? We should make use of partition_num I think

@400Ping

400Ping commented Sep 18, 2026

Copy link
Copy Markdown
Member Author

Hi, thanks for your contribution! Do you have any evidence backing up your 'independent of data size' claim? At the very least it grows with partition count.

Updated, that wording overstated it. v1's total sample size is 10 * num_partitions, so it's independent of input size but grows with the partition count. The earlier v2 commit was a fixed 20 rows per input block, so its total grew with the number of input blocks instead.

@400Ping

400Ping commented Sep 18, 2026 •

Copy link
Copy Markdown
Member Author

For v2 why is sampling rule independent of num partitions and dependent on the number read instead? Are we assuming these numbers are similar? We should make use of partition_num I think

Changed, v2 samples each block as it arrives. Before the block count is final, so v1's 10 * num_partitions / len(blocks) couldn't be evaluated at that point. The planner now passes the logical input's estimated block count (the same estimate that sets num_partitions), and each block samples ceil(10 * num_partitions / estimated_blocks) rows.

@400Ping
400Ping requested a review from AarryaSaraf September 22, 2026 00:54
@400Ping

400Ping commented Sep 23, 2026

Copy link
Copy Markdown
Member Author

@AarryaSaraf any update reviews about this PR?

@AarryaSaraf

Copy link
Copy Markdown
Contributor

LGTM but @owenowenisme needs to approve

@400Ping

400Ping commented Sep 23, 2026

Copy link
Copy Markdown
Member Author

cc @owenowenisme to do final pass

@400Ping 400Ping added the go add ONLY when ready to merge, run all tests label Sep 23, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 114fb58. Configure here.

@owenowenisme
owenowenisme merged commit 1028ef3 into ray-project:master Sep 25, 2026
6 checks passed
dstrodtman added a commit that referenced this pull request Sep 30, 2026
)

## Why are these changes needed?

The Ray Data style pass (#66413, #66418, #66419, #66420, #66422, #66423)
kept the scope of every technical claim. That round flagged statements
that disagree with the current source, or with other statements on the
same page. This PR fixes the ones the source settles. Each edit below
names the source it follows and, where one exists, the PR that caused
the drift.

Ray Data reviewers: please confirm each item. LLM owners: please check
the `working-with-llms.md` edits.

### Performance, monitoring, and configuration

- `performance-tips.md`: The default object store limit is 0.5, not 1/4.
`ResourceManager.DEFAULT_OBJECT_STORE_MEMORY_LIMIT_FRACTION` is 0.5 when
the resource allocator is on, and `op_resource_reservation_enabled`
defaults to `True`. Docs lag since #43171 (2.10).
- `performance-tips.md`: `select_columns` after `read_parquet` prunes at
read time. `ProjectionPushdown` is in `_LOGICAL_RULESET`, and
`ParquetDatasource.supports_projection_pushdown` returns true. Docs lag
since #56500 (2.50). The page now recommends the pattern its own example
uses.
- `performance-tips.md`: The "following procedure" lead-in introduced
bullets that don't describe a procedure. It now introduces them as
rules.
- `monitoring-your-workload.md`: Dropped `RAY_DATA_TRACE_SCHEDULING`,
which nothing under `python/` references anymore. It was removed in
#44399 (2.11).
- `monitoring-your-workload.md`: Dropped the
`ray.data._internal.progress_bar.ProgressBar.MAX_NAME_LENGTH` knob. The
module moved to `_internal/progress/progress_bar.py`, and the tqdm,
logging, and rich progress implementations read a separate copy in
`base_progress.py` (#59629, 2.54). The documented public setting,
`enable_progress_bar_name_truncation`, stays.
- `monitoring-your-workload.md`: The lead-in no longer says all three
settings reduce output. `use_ray_tqdm = False` changes the
implementation, not the amount of output.
- `execution-configurations.md`: Documents `retried_io_errors` in place
of `write_file_retry_on_errors`. `DataContext.__setattr__` warns that
the old option is deprecated. It was deprecated in #46685 (2.33). The
substring-then-regex matching comes from the `retried_io_errors`
docstring.
- `execution-configurations.md`: The example set `verbose_progress =
True`, which is already the default (#43360). It now sets
`preserve_order = True`.
- `how-to-avoid-ooms.md`: "Eliminates kernel OOMs" contradicted the
page's own later statement that kernel OOMs can still happen with
isolation enabled. It now uses the conditional wording of the page's
summary. For "older versions", the object store proportion warning was
removed in #62387, first released in 2.56. The node-death line no longer
cites a version.

### Shuffle, aggregation, joins, and mixing

- `internals.md`: The range-partitioning sampler takes `num_reducers *
10 / len(blocks)` samples per block (`SortTaskSpec.sample_boundaries`),
not 10. The docs were wrong from the start, #52987.
- `internals.md`: `random_shuffle` builds on `ShuffleTaskSpec`, with the
push-based scheduler under `SORT_SHUFFLE_PUSH_BASED` and the pull-based
scheduler otherwise (`planner/random_shuffle.py`). It doesn't use the
range-partitioning shuffle. The docs were wrong from the start, #65372.
- **Note:** #64875 now plans `sort()` on shuffle v2 by default. This PR
removes the stale "shuffle v2 doesn't support sort" claim from the
sentence it edits. It leaves documenting sort on shuffle v2, including
the "doesn't yet replace the range-partitioning shuffle" sentence, to
the Ray Data docs update for that change.
- `shuffling-data.md`: The push-based shuffle section now uses
`DataContext.shuffle_strategy` and `RAY_DATA_DEFAULT_SHUFFLE_STRATEGY`
instead of the deprecated `use_push_based_shuffle` and
`RAY_DATA_PUSH_BASED_SHUFFLE` (#50215, 2.43). The section also drops the
2022 log output: the "Using experimental push-based shuffle" line now
logs at debug level.
- `shuffling-data.md` and `joining-data.md`: Key-based repartitioning
and joins no longer link "hash-shuffle" to the legacy `HASH_SHUFFLE`
section. Shuffle v2 is the default for both.
- `shuffling-data.md`: Dropped "in increasing order of resource
consumption and runtime". The page's own benchmark shows `map_batches`
shuffle keeping more throughput than local buffer shuffle.
- `aggregating-data.md`: `AggregateFnV2` has two abstract methods,
`aggregate_block` and `combine`. `finalize` is optional and defaults to
returning the accumulator. The docs were wrong from the start, reworded
in #59311.
- `joining-data.md`: `_derive_max_shuffle_aggregators` caps the
aggregator count at the CPU count. One partition per aggregator also
needs at least `num_partitions` CPUs.
- `joining-data.md`: The lead-in offered `partition_size_hint` as a
tuning parameter, but the page says Ray Data ignores it.
- `mixing-data.md`: `MixOperator` interleaves whole blocks, but batches
can span blocks, as the page's note says. "Each local batch drawn from a
single dataset" now holds only when block sizes match the batch size.
- `saving-data.md`: `to_pandas()` builds the DataFrame in the calling
process by iterating batches. It doesn't build it on the head node.

### Overview, loading, and modality pages

- `key-concepts.md`: `get_execution_plan` runs the logical optimizer,
then the planner, then the physical optimizer. `FuseOperators` is a
physical rule. The paragraph no longer puts both passes "during this
translation".
- `key-concepts.md`: `Read` plans to `InputDataBuffer` plus a map
operator (`plan_read_op.py`), matching line 74 and `internals.md`. The
example also switches from `read_parquet` to `read_csv`, because
`read_parquet` goes through `ListFiles` and `ReadFiles` when
`use_datasource_v2` is on. That's the default since #64821 (2.57).
- `custom-datasource-example.md`: "Unstable internal APIs" is now
"developer APIs". `FileBasedDatasource` and `RowBasedFileDatasink` are
`@DeveloperAPI`, and `Datasource` is `@PublicAPI`.
- `loading-data.md`: `read_kafka` also accepts per-partition offsets.
`"earliest"` is valid only as a start offset and `"latest"` only as an
end offset (`kafka_datasource.py` raises otherwise).
- `working-with-llms.md`: Hosted OpenAI-compatible endpoints use
`HttpRequestProcessorConfig`, and `ServeDeploymentProcessorConfig`
addresses Ray Serve deployments. The intro was wrong from the start,
#59214.
- `working-with-llms.md`: `size` is a whole-input budget. For video,
Qwen3-VL's `smart_resize` compares `t * h * w` against it. The docs were
wrong from the start, #63593.
- `working-with-tensors.md`: `map_batches` raises `ValueError` for
`batch_size="auto"` when `num_gpus` is set (#62648).

## Duplicate check

This isn't duplicating an existing PR. I searched open `ray-project/ray`
PRs for Ray Data docs and shuffle docs work, and none edits these
statements. The one related open item is a planned Ray Data docs update
for #64875. This PR deliberately leaves that change's sort-on-shuffle-v2
content alone.

## Testing

- Ran the changed `testcode` snippets from `execution-configurations.md`
and `shuffling-data.md` against a Ray nightly wheel. `random_shuffle`
under `SORT_SHUFFLE_PUSH_BASED` returned all 1,000 rows, and
`RAY_DATA_DEFAULT_SHUFFLE_STRATEGY=sort_shuffle_push_based` resolves to
that strategy.
- `vale` on the 15 changed files shows no new findings compared to
`master`.
- `pre-commit` hooks passed on commit.
- I didn't run a local Sphinx build. The new cross-references target
existing API entries, and the Read the Docs preview covers the build.

## AI assistance

I used AI assistance (Claude Code) to trace each claim to the source and
draft the edits. I reviewed every changed line.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
Co-authored-by: You-Cheng Lin <[email protected]>
Signed-off-by: 400Ping <[email protected]>
Signed-off-by: Jie-Kai Chang <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…-project#66614)

## Why are these changes needed?

The Ray Data style pass (ray-project#66413, ray-project#66418, ray-project#66419, ray-project#66420, ray-project#66422, ray-project#66423)
kept the scope of every technical claim. That round flagged statements
that disagree with the current source, or with other statements on the
same page. This PR fixes the ones the source settles. Each edit below
names the source it follows and, where one exists, the PR that caused
the drift.

Ray Data reviewers: please confirm each item. LLM owners: please check
the `working-with-llms.md` edits.

### Performance, monitoring, and configuration

- `performance-tips.md`: The default object store limit is 0.5, not 1/4.
`ResourceManager.DEFAULT_OBJECT_STORE_MEMORY_LIMIT_FRACTION` is 0.5 when
the resource allocator is on, and `op_resource_reservation_enabled`
defaults to `True`. Docs lag since ray-project#43171 (2.10).
- `performance-tips.md`: `select_columns` after `read_parquet` prunes at
read time. `ProjectionPushdown` is in `_LOGICAL_RULESET`, and
`ParquetDatasource.supports_projection_pushdown` returns true. Docs lag
since ray-project#56500 (2.50). The page now recommends the pattern its own example
uses.
- `performance-tips.md`: The "following procedure" lead-in introduced
bullets that don't describe a procedure. It now introduces them as
rules.
- `monitoring-your-workload.md`: Dropped `RAY_DATA_TRACE_SCHEDULING`,
which nothing under `python/` references anymore. It was removed in
ray-project#44399 (2.11).
- `monitoring-your-workload.md`: Dropped the
`ray.data._internal.progress_bar.ProgressBar.MAX_NAME_LENGTH` knob. The
module moved to `_internal/progress/progress_bar.py`, and the tqdm,
logging, and rich progress implementations read a separate copy in
`base_progress.py` (ray-project#59629, 2.54). The documented public setting,
`enable_progress_bar_name_truncation`, stays.
- `monitoring-your-workload.md`: The lead-in no longer says all three
settings reduce output. `use_ray_tqdm = False` changes the
implementation, not the amount of output.
- `execution-configurations.md`: Documents `retried_io_errors` in place
of `write_file_retry_on_errors`. `DataContext.__setattr__` warns that
the old option is deprecated. It was deprecated in ray-project#46685 (2.33). The
substring-then-regex matching comes from the `retried_io_errors`
docstring.
- `execution-configurations.md`: The example set `verbose_progress =
True`, which is already the default (ray-project#43360). It now sets
`preserve_order = True`.
- `how-to-avoid-ooms.md`: "Eliminates kernel OOMs" contradicted the
page's own later statement that kernel OOMs can still happen with
isolation enabled. It now uses the conditional wording of the page's
summary. For "older versions", the object store proportion warning was
removed in ray-project#62387, first released in 2.56. The node-death line no longer
cites a version.

### Shuffle, aggregation, joins, and mixing

- `internals.md`: The range-partitioning sampler takes `num_reducers *
10 / len(blocks)` samples per block (`SortTaskSpec.sample_boundaries`),
not 10. The docs were wrong from the start, ray-project#52987.
- `internals.md`: `random_shuffle` builds on `ShuffleTaskSpec`, with the
push-based scheduler under `SORT_SHUFFLE_PUSH_BASED` and the pull-based
scheduler otherwise (`planner/random_shuffle.py`). It doesn't use the
range-partitioning shuffle. The docs were wrong from the start, ray-project#65372.
- **Note:** ray-project#64875 now plans `sort()` on shuffle v2 by default. This PR
removes the stale "shuffle v2 doesn't support sort" claim from the
sentence it edits. It leaves documenting sort on shuffle v2, including
the "doesn't yet replace the range-partitioning shuffle" sentence, to
the Ray Data docs update for that change.
- `shuffling-data.md`: The push-based shuffle section now uses
`DataContext.shuffle_strategy` and `RAY_DATA_DEFAULT_SHUFFLE_STRATEGY`
instead of the deprecated `use_push_based_shuffle` and
`RAY_DATA_PUSH_BASED_SHUFFLE` (ray-project#50215, 2.43). The section also drops the
2022 log output: the "Using experimental push-based shuffle" line now
logs at debug level.
- `shuffling-data.md` and `joining-data.md`: Key-based repartitioning
and joins no longer link "hash-shuffle" to the legacy `HASH_SHUFFLE`
section. Shuffle v2 is the default for both.
- `shuffling-data.md`: Dropped "in increasing order of resource
consumption and runtime". The page's own benchmark shows `map_batches`
shuffle keeping more throughput than local buffer shuffle.
- `aggregating-data.md`: `AggregateFnV2` has two abstract methods,
`aggregate_block` and `combine`. `finalize` is optional and defaults to
returning the accumulator. The docs were wrong from the start, reworded
in ray-project#59311.
- `joining-data.md`: `_derive_max_shuffle_aggregators` caps the
aggregator count at the CPU count. One partition per aggregator also
needs at least `num_partitions` CPUs.
- `joining-data.md`: The lead-in offered `partition_size_hint` as a
tuning parameter, but the page says Ray Data ignores it.
- `mixing-data.md`: `MixOperator` interleaves whole blocks, but batches
can span blocks, as the page's note says. "Each local batch drawn from a
single dataset" now holds only when block sizes match the batch size.
- `saving-data.md`: `to_pandas()` builds the DataFrame in the calling
process by iterating batches. It doesn't build it on the head node.

### Overview, loading, and modality pages

- `key-concepts.md`: `get_execution_plan` runs the logical optimizer,
then the planner, then the physical optimizer. `FuseOperators` is a
physical rule. The paragraph no longer puts both passes "during this
translation".
- `key-concepts.md`: `Read` plans to `InputDataBuffer` plus a map
operator (`plan_read_op.py`), matching line 74 and `internals.md`. The
example also switches from `read_parquet` to `read_csv`, because
`read_parquet` goes through `ListFiles` and `ReadFiles` when
`use_datasource_v2` is on. That's the default since ray-project#64821 (2.57).
- `custom-datasource-example.md`: "Unstable internal APIs" is now
"developer APIs". `FileBasedDatasource` and `RowBasedFileDatasink` are
`@DeveloperAPI`, and `Datasource` is `@PublicAPI`.
- `loading-data.md`: `read_kafka` also accepts per-partition offsets.
`"earliest"` is valid only as a start offset and `"latest"` only as an
end offset (`kafka_datasource.py` raises otherwise).
- `working-with-llms.md`: Hosted OpenAI-compatible endpoints use
`HttpRequestProcessorConfig`, and `ServeDeploymentProcessorConfig`
addresses Ray Serve deployments. The intro was wrong from the start,
ray-project#59214.
- `working-with-llms.md`: `size` is a whole-input budget. For video,
Qwen3-VL's `smart_resize` compares `t * h * w` against it. The docs were
wrong from the start, ray-project#63593.
- `working-with-tensors.md`: `map_batches` raises `ValueError` for
`batch_size="auto"` when `num_gpus` is set (ray-project#62648).

## Duplicate check

This isn't duplicating an existing PR. I searched open `ray-project/ray`
PRs for Ray Data docs and shuffle docs work, and none edits these
statements. The one related open item is a planned Ray Data docs update
for ray-project#64875. This PR deliberately leaves that change's sort-on-shuffle-v2
content alone.

## Testing

- Ran the changed `testcode` snippets from `execution-configurations.md`
and `shuffling-data.md` against a Ray nightly wheel. `random_shuffle`
under `SORT_SHUFFLE_PUSH_BASED` returned all 1,000 rows, and
`RAY_DATA_DEFAULT_SHUFFLE_STRATEGY=sort_shuffle_push_based` resolves to
that strategy.
- `vale` on the 15 changed files shows no new findings compared to
`master`.
- `pre-commit` hooks passed on commit.
- I didn't run a local Sphinx build. The new cross-references target
existing API entries, and the Read the Docs preview covers the build.

## AI assistance

I used AI assistance (Claude Code) to trace each claim to the source and
draft the edits. I reviewed every changed line.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
goutamvenkat-anyscale added a commit that referenced this pull request Oct 16, 2026
## Summary
- `//python/ray/data:test_random_access` flakes because Bazel `size =
"small"` kills the target at 60s. Recent passing runs took 36s, 53s, and
59s. Failures are SIGTERM during `test_stats` (the last test), not
assertion errors. See [postmerge build
20322](https://buildkite.com/ray-project/postmerge/builds/20322#01a13df4-ecef-4575-98fc-2df98459e7b0).
- The duration regression comes from #64875, which plans
`Dataset.sort()` as `SortSamplingOp -> SortShuffleMapOp ->
ShuffleReduceOp` under the default `SHUFFLE_V2` strategy.
`to_random_access_dataset()` sorts on every call, and this file does
that five times (10 or 20 partitions, one 1-CPU sample task per block,
then an ordered reduce per partition). That fixed per-stage cost is what
pushed the target up against the 60s cap. The serial `get_async` loop
predates the regression.
- Keep `size = "small"` and set `timeout = "moderate"` (5 minutes). This
API is deprecated; the test should not grow a special sort path.
- This does not duplicate an open issue or PR. `gh pr list --repo
ray-project/ray --state open --search "test_random_access in:title"`
returned nothing.

## Test plan
- [ ] Data CI on this PR, including the arrow v23 shard, runs
`//python/ray/data:test_random_access` and it finishes instead of
`TIMEOUT` around 60s.
- No local test run. The only change is the Bazel timeout attribute,
which local pytest does not apply. The flake is the 60s CI kill.

AI assistance was used.

Signed-off-by: Goutam <[email protected]>
Co-authored-by: Cursor <[email protected]>
chia7712 pushed a commit to opensource4you/readme that referenced this pull request Oct 21, 2026
Add a nomination under `fellowship/ray/`

Suggested level: 20k

Highlights from 2026-09-01 to 2026-10-11:
- [Contribution](https://github.com/opensource4you/readme/blob/main/fellowship/ray/fellow-contribution/400Ping/September/report.md)
- Landed the Ray Data roadmap feature task-based shuffle v2 for `sort()`: ~35% faster, ~24% lower object-store peak and no spilling compared with v1 on an 11.92 GiB sort ([#64875](ray-project/ray#64875))
- As a senior contributor who can already approve Ray Data PRs, helps the community a lot by reviewing and guiding other contributors, for example, reviewing other fellows' PRs ([#66878](ray-project/ray#66878), [#65278](ray-project/ray#65278))
- Spent over a month with Ray Data maintainer Balaji researching how to cut Ray Data release test launch time([#66284](ray-project/ray#66284))
- Migrating the CSV datasource to DataSourceV2, with a design doc and a 5-PR stack for the Ray Data maintainers ([#65743](ray-project/ray#65743))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Ray Data-related issues go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants