Repository navigation
[doc][data] Correct Ray Data docs claims that the source settles - #66614
Merged
Merged
Conversation
Fix statements in the Ray Data guides that disagree with the current source, or with other statements on the same page: - performance-tips: the default object store limit is 0.5, not 1/4; select_columns after read_parquet prunes at read time; fix a lead-in that promised a procedure. - monitoring-your-workload: drop the removed RAY_DATA_TRACE_SCHEDULING variable and the moved internal ProgressBar.MAX_NAME_LENGTH knob. - execution-configurations: document retried_io_errors in place of the deprecated write_file_retry_on_errors; the example no longer sets an option to its default. - how-to-avoid-ooms: reconcile the resource isolation claims and name 2.56 for the removed object store warning. - internals: correct the range-partitioning sample count and the random_shuffle backend. - shuffling-data: move push-based shuffle to shuffle_strategy; drop an ordering claim the page's own benchmark contradicts. - aggregating-data, joining-data, mixing-data, saving-data, key-concepts, custom-datasource-example, loading-data, working-with-llms, working-with-tensors: correct method requirements, aggregator caps, batch composition, to_pandas memory, planner order, API stability, Kafka offsets, LLM processor configs, video resize budget, and the batch_size="auto" GPU restriction. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the Ray Data documentation across several files to reflect API changes, deprecations, and clarifications. Key updates include documenting the new retried_io_errors configuration, clarifying shuffle strategies and push-based shuffle environment variables, updating LLM batch inference options, detailing Kafka per-partition offset support, and refining various performance, OOM prevention, and execution configuration guides. There are no review comments, so I have no feedback to provide.
matthewdeng
approved these changes
Sep 30, 2026
dstrodtman
enabled auto-merge (squash)
September 30, 2026 20:34
dstrodtman
added a commit
that referenced
this pull request
Oct 2, 2026
## Why are these changes needed? A style pass over the Ray Data guides ([#66418](#66418), [#66419](#66419), [#66420](#66420), [#66422](#66422), [#66461](#66461)) turned up code examples that are broken as written. They raise if you copy them, or they don't match what the surrounding text says. This PR fixes only those examples. It doesn't convert untested blocks to tests. | Page | Problem | Fix | |---|---|---| | `loading-data.md` | GCS example uses `gcsfs` without importing it. | Import it. | | `loading-data.md` | Azure example passes `filesystem` positionally, but it's keyword-only in `read_parquet` (`TypeError`). | Pass it by keyword. | | `loading-data.md` | BigQuery `dataset="bigquery-public-data.ml_datasets.iris"`. `BigQueryDatasource` reads `dataset` as `dataset_id.table_id` under `project_id`, so this resolves to dataset `bigquery-public-data`, table `ml_datasets`. | Use a `my_dataset.my_table` placeholder, and say the format in the comment. | | `loading-data.md` | `write_mongo` example passes an undefined `MongoDatasource()`, and `write_mongo` has no such parameter. | Remove it. | | `saving-data.md` | GCS and Azure examples use `gcsfs` and `adlfs` without importing them. | Import them. | | `inspecting-data.md` | Output shows `Image shape:`, but the print has no colon. | Add the colon to the print. | | `shuffling-data.md` | Key-based repartition on `id`, but `ds` is a `read_images` dataset with only `image`. It passed only because nothing consumed the dataset. Consumed, it raises `KeyError: Field "id" does not exist`. | Use `ray.data.range(1000)` and materialize. | | `key-concepts.md` | Streaming example uses undefined UDF names and `read_parquet(...)`, under a "1K rows" comment. | Define placeholder UDFs and use `ray.data.range(1000)`. | | `scaling-collation-functions.md` | Example reassigns `dataset` but passes `train_dataset` to the trainer. | Use `train_dataset` throughout. | | `transforming-data.md` | Polars example: imports `pl` but calls `polars.` (`NameError`). `from_pyarrow` and `DataFrame.summary` don't exist in Polars. The block never consumed `ds`, so the UDF never ran. | `pl.from_arrow`, `describe()`, and materialize. | | `transforming-data.md` | pandas `map_groups` example calls `group.drop("target")`, which drops rows by label and raises `KeyError`. | `group.pop("target")`, which sets the column aside as the code intends. Materialize. | ## Duplicate check Searched open PRs for each affected API and page (`polars from_pyarrow`, `map_groups`, `gcsfs`, `read_bigquery`, `write_mongo`, `repartition`, collation). Nothing open addresses these examples. [#66614](#66614) and [#66615](#66615) edited some of the same pages, but not these examples. Both have merged, and this branch is rebased on them. ## Testing Ran against the Ray nightly wheel (`3.0.0.dev0`, `674900c91fa`) on macOS arm64, using the same pytest arguments and Data doctest plugin as the `doctest_each` targets in `doc/BUILD.bazel`, with `pytest==7.4.4` and Ray's `pytest-sphinx` fork: ```bash python -m pytest --doctest-modules --doctest-glob='*.md' --disable-warnings -c NO_PYTEST_CONFIG \ -p doctest_pytest_plugin doc/source/data/<page>.md ``` - `loading-data.md`, `saving-data.md`, `inspecting-data.md`, `shuffling-data.md`, and `key-concepts.md` pass, before and after the change. - `transforming-data.md` is in `doctest[data-gpu]` and stops at a CUDA block on a host without a GPU, before and after. So I ran its Iris setup block and the two changed blocks as a standalone doctest file, and it passes. Before the fix, those blocks raise `NameError` and `KeyError` once the dataset is consumed. - `key-concepts.md` streaming and `scaling-collation-functions.md` are untested `python` blocks. I ran the streaming block with `num_gpus=1` removed, and it runs. The collation change is a rename, checked by reading. - The `:skipif: True` GCS, Azure, BigQuery, and MongoDB blocks need credentials, so I checked them against the current signatures in `read_api.py` and `dataset.py` and `bigquery_datasource.py`. - `pre-commit run` passes on the changed files. This change touches only `.md` files, so premerge doesn't run the Data doc example tests. ## AI assistance Claude Code helped find the source for each fix, apply the edits, and run the tests. 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
…-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]>
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
…ect#66636) ## Why are these changes needed? A style pass over the Ray Data guides ([ray-project#66418](ray-project#66418), [ray-project#66419](ray-project#66419), [ray-project#66420](ray-project#66420), [ray-project#66422](ray-project#66422), [ray-project#66461](ray-project#66461)) turned up code examples that are broken as written. They raise if you copy them, or they don't match what the surrounding text says. This PR fixes only those examples. It doesn't convert untested blocks to tests. | Page | Problem | Fix | |---|---|---| | `loading-data.md` | GCS example uses `gcsfs` without importing it. | Import it. | | `loading-data.md` | Azure example passes `filesystem` positionally, but it's keyword-only in `read_parquet` (`TypeError`). | Pass it by keyword. | | `loading-data.md` | BigQuery `dataset="bigquery-public-data.ml_datasets.iris"`. `BigQueryDatasource` reads `dataset` as `dataset_id.table_id` under `project_id`, so this resolves to dataset `bigquery-public-data`, table `ml_datasets`. | Use a `my_dataset.my_table` placeholder, and say the format in the comment. | | `loading-data.md` | `write_mongo` example passes an undefined `MongoDatasource()`, and `write_mongo` has no such parameter. | Remove it. | | `saving-data.md` | GCS and Azure examples use `gcsfs` and `adlfs` without importing them. | Import them. | | `inspecting-data.md` | Output shows `Image shape:`, but the print has no colon. | Add the colon to the print. | | `shuffling-data.md` | Key-based repartition on `id`, but `ds` is a `read_images` dataset with only `image`. It passed only because nothing consumed the dataset. Consumed, it raises `KeyError: Field "id" does not exist`. | Use `ray.data.range(1000)` and materialize. | | `key-concepts.md` | Streaming example uses undefined UDF names and `read_parquet(...)`, under a "1K rows" comment. | Define placeholder UDFs and use `ray.data.range(1000)`. | | `scaling-collation-functions.md` | Example reassigns `dataset` but passes `train_dataset` to the trainer. | Use `train_dataset` throughout. | | `transforming-data.md` | Polars example: imports `pl` but calls `polars.` (`NameError`). `from_pyarrow` and `DataFrame.summary` don't exist in Polars. The block never consumed `ds`, so the UDF never ran. | `pl.from_arrow`, `describe()`, and materialize. | | `transforming-data.md` | pandas `map_groups` example calls `group.drop("target")`, which drops rows by label and raises `KeyError`. | `group.pop("target")`, which sets the column aside as the code intends. Materialize. | ## Duplicate check Searched open PRs for each affected API and page (`polars from_pyarrow`, `map_groups`, `gcsfs`, `read_bigquery`, `write_mongo`, `repartition`, collation). Nothing open addresses these examples. [ray-project#66614](ray-project#66614) and [ray-project#66615](ray-project#66615) edited some of the same pages, but not these examples. Both have merged, and this branch is rebased on them. ## Testing Ran against the Ray nightly wheel (`3.0.0.dev0`, `674900c91fa`) on macOS arm64, using the same pytest arguments and Data doctest plugin as the `doctest_each` targets in `doc/BUILD.bazel`, with `pytest==7.4.4` and Ray's `pytest-sphinx` fork: ```bash python -m pytest --doctest-modules --doctest-glob='*.md' --disable-warnings -c NO_PYTEST_CONFIG \ -p doctest_pytest_plugin doc/source/data/<page>.md ``` - `loading-data.md`, `saving-data.md`, `inspecting-data.md`, `shuffling-data.md`, and `key-concepts.md` pass, before and after the change. - `transforming-data.md` is in `doctest[data-gpu]` and stops at a CUDA block on a host without a GPU, before and after. So I ran its Iris setup block and the two changed blocks as a standalone doctest file, and it passes. Before the fix, those blocks raise `NameError` and `KeyError` once the dataset is consumed. - `key-concepts.md` streaming and `scaling-collation-functions.md` are untested `python` blocks. I ran the streaming block with `num_gpus=1` removed, and it runs. The collation change is a rename, checked by reading. - The `:skipif: True` GCS, Azure, BigQuery, and MongoDB blocks need credentials, so I checked them against the current signatures in `read_api.py` and `dataset.py` and `bigquery_datasource.py`. - `pre-commit run` passes on the changed files. This change touches only `.md` files, so premerge doesn't run the Data doc example tests. ## AI assistance Claude Code helped find the source for each fix, apply the edits, and run the tests. 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdedits.Performance, monitoring, and configuration
performance-tips.md: The default object store limit is 0.5, not 1/4.ResourceManager.DEFAULT_OBJECT_STORE_MEMORY_LIMIT_FRACTIONis 0.5 when the resource allocator is on, andop_resource_reservation_enableddefaults toTrue. Docs lag since [data] Enable per-op resource reservation #43171 (2.10).performance-tips.md:select_columnsafterread_parquetprunes at read time.ProjectionPushdownis in_LOGICAL_RULESET, andParquetDatasource.supports_projection_pushdownreturns true. Docs lag since [Data] Added support for projection pushdown into Parquet reads #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: DroppedRAY_DATA_TRACE_SCHEDULING, which nothing underpython/references anymore. It was removed in [Data] RemoveDEBUG_TRACE_SCHEDULING#44399 (2.11).monitoring-your-workload.md: Dropped theray.data._internal.progress_bar.ProgressBar.MAX_NAME_LENGTHknob. The module moved to_internal/progress/progress_bar.py, and the tqdm, logging, and rich progress implementations read a separate copy inbase_progress.py([Data] Progress Reporting Refactor 2 #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 = Falsechanges the implementation, not the amount of output.execution-configurations.md: Documentsretried_io_errorsin place ofwrite_file_retry_on_errors.DataContext.__setattr__warns that the old option is deprecated. It was deprecated in [Data] Improve filesystem retry coverage #46685 (2.33). The substring-then-regex matching comes from theretried_io_errorsdocstring.execution-configurations.md: The example setverbose_progress = True, which is already the default ([Data] Restructure stdout logging #43360). It now setspreserve_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 [Data] Remove warning instructing users to increaseRAY_DEFAULT_OBJECT_STORE_MEMORY_PROPORTION#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 takesnum_reducers * 10 / len(blocks)samples per block (SortTaskSpec.sample_boundaries), not 10. The docs were wrong from the start, [Docs] Added user-guide for Joins #52987.internals.md:random_shufflebuilds onShuffleTaskSpec, with the push-based scheduler underSORT_SHUFFLE_PUSH_BASEDand the pull-based scheduler otherwise (planner/random_shuffle.py). It doesn't use the range-partitioning shuffle. The docs were wrong from the start, [Data] Update docs for hash shuffle v2 #65372.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 usesDataContext.shuffle_strategyandRAY_DATA_DEFAULT_SHUFFLE_STRATEGYinstead of the deprecateduse_push_based_shuffleandRAY_DATA_PUSH_BASED_SHUFFLE([Data][Part 1] RefactoringAllToAllOperatorsupport of different shuffling strategies #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.mdandjoining-data.md: Key-based repartitioning and joins no longer link "hash-shuffle" to the legacyHASH_SHUFFLEsection. Shuffle v2 is the default for both.shuffling-data.md: Dropped "in increasing order of resource consumption and runtime". The page's own benchmark showsmap_batchesshuffle keeping more throughput than local buffer shuffle.aggregating-data.md:AggregateFnV2has two abstract methods,aggregate_blockandcombine.finalizeis optional and defaults to returning the accumulator. The docs were wrong from the start, reworded in [data/doc] Minor formatting improvements #59311.joining-data.md:_derive_max_shuffle_aggregatorscaps the aggregator count at the CPU count. One partition per aggregator also needs at leastnum_partitionsCPUs.joining-data.md: The lead-in offeredpartition_size_hintas a tuning parameter, but the page says Ray Data ignores it.mixing-data.md:MixOperatorinterleaves 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_planruns the logical optimizer, then the planner, then the physical optimizer.FuseOperatorsis a physical rule. The paragraph no longer puts both passes "during this translation".key-concepts.md:Readplans toInputDataBufferplus a map operator (plan_read_op.py), matching line 74 andinternals.md. The example also switches fromread_parquettoread_csv, becauseread_parquetgoes throughListFilesandReadFileswhenuse_datasource_v2is on. That's the default since [Data] Enable DataSource V2 by default #64821 (2.57).custom-datasource-example.md: "Unstable internal APIs" is now "developer APIs".FileBasedDatasourceandRowBasedFileDatasinkare@DeveloperAPI, andDatasourceis@PublicAPI.loading-data.md:read_kafkaalso accepts per-partition offsets."earliest"is valid only as a start offset and"latest"only as an end offset (kafka_datasource.pyraises otherwise).working-with-llms.md: Hosted OpenAI-compatible endpoints useHttpRequestProcessorConfig, andServeDeploymentProcessorConfigaddresses Ray Serve deployments. The intro was wrong from the start, [docs][data][llm] Batch inference docs reorg + update to reflect per-stage config refactor #59214.working-with-llms.md:sizeis a whole-input budget. For video, Qwen3-VL'ssmart_resizecomparest * h * wagainst it. The docs were wrong from the start, [llm][docs] Document multimodal pixel-budget gotchas and vLLM compatibility #63593.working-with-tensors.md:map_batchesraisesValueErrorforbatch_size="auto"whennum_gpusis set ([Data] Add batch_size = 'auto' to the map_batches API, to determine batch row count from target row batch size #62648).Duplicate check
This isn't duplicating an existing PR. I searched open
ray-project/rayPRs 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
testcodesnippets fromexecution-configurations.mdandshuffling-data.mdagainst a Ray nightly wheel.random_shuffleunderSORT_SHUFFLE_PUSH_BASEDreturned all 1,000 rows, andRAY_DATA_DEFAULT_SHUFFLE_STRATEGY=sort_shuffle_push_basedresolves to that strategy.valeon the 15 changed files shows no new findings compared tomaster.pre-commithooks passed on commit.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