Repository navigation
[Data] Fix three inaccurate claims on the join and save docs - #65525
dstrodtman merged 1 commit into
Conversation
Set the shuffle strategy on the active context in saving-data.rst. DataContext.shuffle_strategy is a property with a setter, so assigning to it on the class object rebinds the class attribute over the property descriptor rather than calling the setter. That leaves the strategy unset for the example and breaks the attribute for every DataContext instance in the process. Describe partition_size_hint as deprecated and ignored. Dataset.join documents it as having no effect and warns when it receives a value, so the tuning guidance told readers how to size a parameter that does nothing. The page also predicted deprecation in 2.58, which has already happened. Correct the aggregator pool size. The page said it defaults to 64. The pool is min(num_partitions, min(ceil(cluster CPUs), max_hash_shuffle_aggregators)), and max_hash_shuffle_aggregators defaults to 128, so both the number and the set of bounds were wrong. Signed-off-by: Douglas Strodtman <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates the Ray Data documentation to mark partition_size_hint as deprecated, update the default configuration details for the number of aggregators, and correct the usage of DataContext when setting the shuffle strategy. The reviewer suggested using the string literal "shuffle_v2" instead of the ShuffleStrategy enum to simplify the user-facing documentation and avoid unnecessary imports.
| - `partition_size_hint`: (optional) Hint to joining operator about the estimated avg expected size of the individual partition (in bytes). If not specified, defaults to DataContext.target_max_block_size (128Mb by default). Expect this parameter to be deprecated in 2.58. | ||
| - Note that, `num_partitions * partition_size_hint` should ideally be approximating actual dataset size, ie `partition_size_hint` could be estimated as dataset size divided by `num_partitions` (assuming relatively evenly sized partitions) | ||
| - However, in cases when dataset partitioning is expected to be heavily skewed `partition_size_hint` should approximate largest partition to prevent Out-of-Memory (OOM) errors | ||
| - `partition_size_hint`: (**deprecated**) Hint to joining operator about the estimated avg expected size of the individual partition (in bytes). Ray Data ignores this parameter and a future release removes it. Passing a value emits a `DeprecationWarning`. The join path sizes reduce-task memory from observed partition sizes instead of from a hint. |
There was a problem hiding this comment.
Flagging a deliberate deletion here, since it's the one part of this PR that removes reader-facing guidance rather than correcting it.
The two nested bullets under partition_size_hint explained how to size the hint: num_partitions * partition_size_hint should approximate the dataset size, and for a skewed dataset the hint should approximate the largest partition to avoid OOM. Both were reasonable advice when the parameter did something.
It no longer does. Dataset.join documents it as "Deprecated and ignored ... This parameter has no effect and will be removed in a future release", and passing any value emits a DeprecationWarning. So the sizing guidance now tells readers how to tune a parameter that can't affect anything, which is worse than saying nothing: a reader who follows it will conclude their join is memory-tuned when it isn't.
I removed the bullets rather than rewriting them because there's no correct version. There's no formula to give for an input the join path ignores. The replacement bullet keeps the parameter documented, since it's still in the signature and callers who pass it need to know why it stopped mattering, and points at what actually determines reduce-task memory now: observed partition sizes.
If you'd rather keep the sizing math for readers on an older release, I'm happy to restore it under an explicit version note instead. Flagging the choice rather than assuming it.
| - `partition_size_hint`: (optional) Hint to joining operator about the estimated avg expected size of the individual partition (in bytes). If not specified, defaults to DataContext.target_max_block_size (128Mb by default). Expect this parameter to be deprecated in 2.58. | ||
| - Note that, `num_partitions * partition_size_hint` should ideally be approximating actual dataset size, ie `partition_size_hint` could be estimated as dataset size divided by `num_partitions` (assuming relatively evenly sized partitions) | ||
| - However, in cases when dataset partitioning is expected to be heavily skewed `partition_size_hint` should approximate largest partition to prevent Out-of-Memory (OOM) errors | ||
| - `partition_size_hint`: (**deprecated**) Hint to joining operator about the estimated avg expected size of the individual partition (in bytes). Ray Data ignores this parameter and a future release removes it. Passing a value emits a `DeprecationWarning`. The join path sizes reduce-task memory from observed partition sizes instead of from a hint. |
…ject#65525) ## Summary Three claims on the Ray Data join and save pages don't match the code. This PR corrects only those claims, deliberately leaving the surrounding prose alone so the diff is small enough to review as a technical question rather than a wording one. Each correction is cited below. I don't own Ray Data, so please check the reasoning rather than the phrasing. ## 1. `saving-data.rst` sets the shuffle strategy on the class, not the context ```python DataContext.shuffle_strategy=ShuffleStrategy.SHUFFLE_V2 # before DataContext.get_current().shuffle_strategy = ShuffleStrategy.SHUFFLE_V2 # after ``` `shuffle_strategy` is a `property` with a setter (`python/ray/data/context.py`, the `@property` at ~L1246 and `@shuffle_strategy.setter` at ~L1258). Assigning to it on the class object rebinds the class attribute over the descriptor instead of invoking the setter. Two consequences: the example never actually selects the strategy it says it's selecting, and `shuffle_strategy` stops working for every `DataContext` instance in that process. This is a `testcode` block, so it runs in CI. Note that because the assignment never took effect, the block has so far only ever exercised the default `HASH_SHUFFLE`. With the fix it genuinely runs `SHUFFLE_V2` for the first time. I don't have a Ray build locally, so **please confirm that job passes** rather than taking my word for it. If `SHUFFLE_V2` isn't ready to be load-bearing in a doctest, setting `HASH_SHUFFLE` on `get_current()` would fix the descriptor bug without that exposure. @gemini-code-assist flagged this on two separate passes (ray-project#65372); the value got updated to `SHUFFLE_V2` but the receiver didn't. ## 2. `partition_size_hint` is documented as a live tuning parameter The page described it as `(optional)`, gave it a default of `DataContext.target_max_block_size`, and offered two bullets on how to size it for skew. But `Dataset.join` documents it as "**Deprecated** and ignored ... This parameter has no effect and will be removed in a future release" (`python/ray/data/dataset.py` ~L3601), and passing a value emits a `DeprecationWarning` (~L3712). So the guidance told readers how to tune something inert. I removed the sizing advice rather than rewriting it, since there's nothing to tune. The page also said "Expect this parameter to be deprecated in 2.58." That deprecation has already landed, so the sentence was predicting the past. ## 3. The aggregator pool doesn't default to 64 The page said "Defaults to 64 or `num_partitions` (in cases when there are less than 64 partitions)." From `_derive_max_shuffle_aggregators` and its caller in `python/ray/data/_internal/execution/operators/hash_shuffle.py` (~L485 and ~L591): ``` num_aggregators = min(target_num_partitions, max_shuffle_aggregators) max_shuffle_aggregators = min(ceil(total_cluster_cpu), max_hash_shuffle_aggregators or DEFAULT_MAX_HASH_SHUFFLE_AGGREGATORS) ``` `DEFAULT_MAX_HASH_SHUFFLE_AGGREGATORS` is 128 (`context.py` ~L128). So the cap is 128 rather than 64, and there's a cluster-CPU bound the page never mentioned. **One thing worth a maintainer's eye:** the comment on the `max_hash_shuffle_aggregators` field (`context.py` ~L886) says the unset default is the smaller of "Total # of CPUs available in the cluster * 2" and 128. The code has no `* 2`. I documented the code, not the comment, but one of the two is stale and I can't tell which is intended. ## Out of scope These pages have wider style and prose issues, plus a genuine RST rendering bug in the join-type lists. Those are handled separately in ray-project#65374 so this PR stays reviewable as a technical correction. ray-project#65374 touches the same region of `joining-data.rst`, so whichever merges second needs a trivial rebase. Signed-off-by: Douglas Strodtman <[email protected]> Signed-off-by: 400Ping <[email protected]>
Resolves the one conflict in doc/source/data/joining-data.rst. The factual-fix PR #65525 rewrote the aggregator-count bullet list in the same region this style pass reworded. Resolution keeps the corrected default-count claim from master and the style rewording of the remaining two bullets, and applies this pass's double-backtick and terminal-period conventions to the incoming bullet so the list matches the note and numbered list that follow it. Signed-off-by: Douglas Strodtman <[email protected]>
## Summary Three claims on the Ray Data join and save pages don't match the code. This PR corrects only those claims, deliberately leaving the surrounding prose alone so the diff is small enough to review as a technical question rather than a wording one. Each correction is cited below. I don't own Ray Data, so please check the reasoning rather than the phrasing. ## 1. `saving-data.rst` sets the shuffle strategy on the class, not the context ```python DataContext.shuffle_strategy=ShuffleStrategy.SHUFFLE_V2 # before DataContext.get_current().shuffle_strategy = ShuffleStrategy.SHUFFLE_V2 # after ``` `shuffle_strategy` is a `property` with a setter (`python/ray/data/context.py`, the `@property` at ~L1246 and `@shuffle_strategy.setter` at ~L1258). Assigning to it on the class object rebinds the class attribute over the descriptor instead of invoking the setter. Two consequences: the example never actually selects the strategy it says it's selecting, and `shuffle_strategy` stops working for every `DataContext` instance in that process. This is a `testcode` block, so it runs in CI. Note that because the assignment never took effect, the block has so far only ever exercised the default `HASH_SHUFFLE`. With the fix it genuinely runs `SHUFFLE_V2` for the first time. I don't have a Ray build locally, so **please confirm that job passes** rather than taking my word for it. If `SHUFFLE_V2` isn't ready to be load-bearing in a doctest, setting `HASH_SHUFFLE` on `get_current()` would fix the descriptor bug without that exposure. @gemini-code-assist flagged this on two separate passes (#65372); the value got updated to `SHUFFLE_V2` but the receiver didn't. ## 2. `partition_size_hint` is documented as a live tuning parameter The page described it as `(optional)`, gave it a default of `DataContext.target_max_block_size`, and offered two bullets on how to size it for skew. But `Dataset.join` documents it as "**Deprecated** and ignored ... This parameter has no effect and will be removed in a future release" (`python/ray/data/dataset.py` ~L3601), and passing a value emits a `DeprecationWarning` (~L3712). So the guidance told readers how to tune something inert. I removed the sizing advice rather than rewriting it, since there's nothing to tune. The page also said "Expect this parameter to be deprecated in 2.58." That deprecation has already landed, so the sentence was predicting the past. ## 3. The aggregator pool doesn't default to 64 The page said "Defaults to 64 or `num_partitions` (in cases when there are less than 64 partitions)." From `_derive_max_shuffle_aggregators` and its caller in `python/ray/data/_internal/execution/operators/hash_shuffle.py` (~L485 and ~L591): ``` num_aggregators = min(target_num_partitions, max_shuffle_aggregators) max_shuffle_aggregators = min(ceil(total_cluster_cpu), max_hash_shuffle_aggregators or DEFAULT_MAX_HASH_SHUFFLE_AGGREGATORS) ``` `DEFAULT_MAX_HASH_SHUFFLE_AGGREGATORS` is 128 (`context.py` ~L128). So the cap is 128 rather than 64, and there's a cluster-CPU bound the page never mentioned. **One thing worth a maintainer's eye:** the comment on the `max_hash_shuffle_aggregators` field (`context.py` ~L886) says the unset default is the smaller of "Total # of CPUs available in the cluster * 2" and 128. The code has no `* 2`. I documented the code, not the comment, but one of the two is stale and I can't tell which is intended. ## Out of scope These pages have wider style and prose issues, plus a genuine RST rendering bug in the join-type lists. Those are handled separately in #65374 so this PR stays reviewable as a technical correction. #65374 touches the same region of `joining-data.rst`, so whichever merges second needs a trivial rebase. Signed-off-by: Douglas Strodtman <[email protected]> (cherry picked from commit a74234c) Signed-off-by: You-Cheng Lin <[email protected]>
## Summary Style and grammar pass across the Ray Data shuffle pages, measured against `doc/source/ray-contribute/writing-style.md`. Originally scoped to `data-internals.rst`; extended after #65372 merged so the shuffle v2 content it introduced gets the same treatment as the rest of the page, along with the sibling pages that reference it. No behavior claims are changed. Where a wording fix would have restated a technical claim I couldn't verify, I left the original text alone. ## Rendering fix `joining-data.rst` had three join-type lists written as: ```rst **Semi Joins:** - Left Semi, Right Semi (returns all rows ... ``` RST needs a blank line before a bullet list, so all three rendered as run-together paragraphs with literal `-` characters rather than lists. Confirmed with docutils before and after. ## Style fixes - **Sentence-case headings** throughout. Nothing catches these: `Google.Headings` is disabled repo-wide. - **Feature-stage casing.** "currently in Alpha" to "in alpha", per the guide's rule that Ray-owned stages are lowercase. - **Time-relative words.** Dropped "currently"; replaced the "this is a new feature released in Ray 2.46" note, since 2.46 is no longer new. - **Units.** "100 KB" to 100 KiB and "8 KB" to 8 KiB in `data-internals.rst`, matching the actual `100 * 1024` and `8192` values. The same section already said 1 GiB correctly. - **Bold-as-heading** to definition-list form for the two shuffle v2 tuning settings. - **`export`** added to the `RAY_DATA_DEFAULT_SHUFFLE_STRATEGY` snippet, and the variable named in the lead-in, so the snippet does what the prose describes. - **Wording.** "knobs" to "settings", "only applies" to "applies only", "group-bys" to "group-by operations", one spelling of "trade-off". - **Mechanical.** Unicode quotes and apostrophes, trailing whitespace, comma splices, missing terminal periods, and single backticks where surrounding text uses double. ## Note for reviewers Sentence-casing headings changes their generated HTML anchors, so any external deep link to, for example, `#basic-aggregations` still resolves but `#Custom-Aggregations`-style links to the old casing would not. `autosectionlabel` isn't enabled and every `:ref:` on these pages uses an explicit label, so no in-tree cross-reference breaks. Happy to revert the heading changes if the anchor churn isn't worth it. ## Follow-up status The factual corrections these pages needed shipped separately in #65525, which is merged. That covered the `DataContext.shuffle_strategy` assignment in `saving-data.rst`, the `partition_size_hint` deprecation, and the aggregator-count default in `joining-data.rst`. This branch is merged up with master and carries those corrections, with the `partition_size_hint` bullet's inline literals normalized to double backticks to match the rest of the page. Nothing factual is outstanding. --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…tyle guide (#65869) ## Summary Documents two facts about Ray's Sphinx configuration in the documentation style guide. Neither was written down anywhere contributors or agents would find them, and both were rediscovered from `conf.py` during recent Ray Data style passes (#65374, #65525). - Ray doesn't enable `autosectionlabel`, so a heading's text isn't a `{ref}` target on its own and every linked section needs an explicit label. Added to the cross-references section, which already showed the `(my-label)=` pattern but never said why it's required. - Ray sets `default_role = "code"`, so a bare single-backtick in reStructuredText renders as inline code, not italics or a broken role. Added as a note in the bold-and-italics section. This one nearly produced ~50 false "single backticks are a rendering bug" findings in a prior review pass. ## Why this isn't a duplicate Searched open PRs with `gh pr list --search` for `writing-style`, `autosectionlabel`, `default_role`, and `anchor`. No open PR documents these. ## Test plan Prose-only change under `doc/`. A change to only `.md` files under `doc/` runs no library test steps; the Read the Docs render gate validates the build. Both claims were verified directly against `doc/source/conf.py` (`autosectionlabel` absent from `extensions`; `default_role = "code"`). ## AI assistance Drafted with AI assistance (Claude Code). Facts verified against `doc/source/conf.py`. The submitter reviews every changed line before requesting review. Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
…ject#65525) ## Summary Three claims on the Ray Data join and save pages don't match the code. This PR corrects only those claims, deliberately leaving the surrounding prose alone so the diff is small enough to review as a technical question rather than a wording one. Each correction is cited below. I don't own Ray Data, so please check the reasoning rather than the phrasing. ## 1. `saving-data.rst` sets the shuffle strategy on the class, not the context ```python DataContext.shuffle_strategy=ShuffleStrategy.SHUFFLE_V2 # before DataContext.get_current().shuffle_strategy = ShuffleStrategy.SHUFFLE_V2 # after ``` `shuffle_strategy` is a `property` with a setter (`python/ray/data/context.py`, the `@property` at ~L1246 and `@shuffle_strategy.setter` at ~L1258). Assigning to it on the class object rebinds the class attribute over the descriptor instead of invoking the setter. Two consequences: the example never actually selects the strategy it says it's selecting, and `shuffle_strategy` stops working for every `DataContext` instance in that process. This is a `testcode` block, so it runs in CI. Note that because the assignment never took effect, the block has so far only ever exercised the default `HASH_SHUFFLE`. With the fix it genuinely runs `SHUFFLE_V2` for the first time. I don't have a Ray build locally, so **please confirm that job passes** rather than taking my word for it. If `SHUFFLE_V2` isn't ready to be load-bearing in a doctest, setting `HASH_SHUFFLE` on `get_current()` would fix the descriptor bug without that exposure. @gemini-code-assist flagged this on two separate passes (ray-project#65372); the value got updated to `SHUFFLE_V2` but the receiver didn't. ## 2. `partition_size_hint` is documented as a live tuning parameter The page described it as `(optional)`, gave it a default of `DataContext.target_max_block_size`, and offered two bullets on how to size it for skew. But `Dataset.join` documents it as "**Deprecated** and ignored ... This parameter has no effect and will be removed in a future release" (`python/ray/data/dataset.py` ~L3601), and passing a value emits a `DeprecationWarning` (~L3712). So the guidance told readers how to tune something inert. I removed the sizing advice rather than rewriting it, since there's nothing to tune. The page also said "Expect this parameter to be deprecated in 2.58." That deprecation has already landed, so the sentence was predicting the past. ## 3. The aggregator pool doesn't default to 64 The page said "Defaults to 64 or `num_partitions` (in cases when there are less than 64 partitions)." From `_derive_max_shuffle_aggregators` and its caller in `python/ray/data/_internal/execution/operators/hash_shuffle.py` (~L485 and ~L591): ``` num_aggregators = min(target_num_partitions, max_shuffle_aggregators) max_shuffle_aggregators = min(ceil(total_cluster_cpu), max_hash_shuffle_aggregators or DEFAULT_MAX_HASH_SHUFFLE_AGGREGATORS) ``` `DEFAULT_MAX_HASH_SHUFFLE_AGGREGATORS` is 128 (`context.py` ~L128). So the cap is 128 rather than 64, and there's a cluster-CPU bound the page never mentioned. **One thing worth a maintainer's eye:** the comment on the `max_hash_shuffle_aggregators` field (`context.py` ~L886) says the unset default is the smaller of "Total # of CPUs available in the cluster * 2" and 128. The code has no `* 2`. I documented the code, not the comment, but one of the two is stale and I can't tell which is intended. ## Out of scope These pages have wider style and prose issues, plus a genuine RST rendering bug in the join-type lists. Those are handled separately in ray-project#65374 so this PR stays reviewable as a technical correction. ray-project#65374 touches the same region of `joining-data.rst`, so whichever merges second needs a trivial rebase. Signed-off-by: Douglas Strodtman <[email protected]>
…ect#65374) ## Summary Style and grammar pass across the Ray Data shuffle pages, measured against `doc/source/ray-contribute/writing-style.md`. Originally scoped to `data-internals.rst`; extended after ray-project#65372 merged so the shuffle v2 content it introduced gets the same treatment as the rest of the page, along with the sibling pages that reference it. No behavior claims are changed. Where a wording fix would have restated a technical claim I couldn't verify, I left the original text alone. ## Rendering fix `joining-data.rst` had three join-type lists written as: ```rst **Semi Joins:** - Left Semi, Right Semi (returns all rows ... ``` RST needs a blank line before a bullet list, so all three rendered as run-together paragraphs with literal `-` characters rather than lists. Confirmed with docutils before and after. ## Style fixes - **Sentence-case headings** throughout. Nothing catches these: `Google.Headings` is disabled repo-wide. - **Feature-stage casing.** "currently in Alpha" to "in alpha", per the guide's rule that Ray-owned stages are lowercase. - **Time-relative words.** Dropped "currently"; replaced the "this is a new feature released in Ray 2.46" note, since 2.46 is no longer new. - **Units.** "100 KB" to 100 KiB and "8 KB" to 8 KiB in `data-internals.rst`, matching the actual `100 * 1024` and `8192` values. The same section already said 1 GiB correctly. - **Bold-as-heading** to definition-list form for the two shuffle v2 tuning settings. - **`export`** added to the `RAY_DATA_DEFAULT_SHUFFLE_STRATEGY` snippet, and the variable named in the lead-in, so the snippet does what the prose describes. - **Wording.** "knobs" to "settings", "only applies" to "applies only", "group-bys" to "group-by operations", one spelling of "trade-off". - **Mechanical.** Unicode quotes and apostrophes, trailing whitespace, comma splices, missing terminal periods, and single backticks where surrounding text uses double. ## Note for reviewers Sentence-casing headings changes their generated HTML anchors, so any external deep link to, for example, `#basic-aggregations` still resolves but `#Custom-Aggregations`-style links to the old casing would not. `autosectionlabel` isn't enabled and every `:ref:` on these pages uses an explicit label, so no in-tree cross-reference breaks. Happy to revert the heading changes if the anchor churn isn't worth it. ## Follow-up status The factual corrections these pages needed shipped separately in ray-project#65525, which is merged. That covered the `DataContext.shuffle_strategy` assignment in `saving-data.rst`, the `partition_size_hint` deprecation, and the aggregator-count default in `joining-data.rst`. This branch is merged up with master and carries those corrections, with the `partition_size_hint` bullet's inline literals normalized to double backticks to match the rest of the page. Nothing factual is outstanding. --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…tyle guide (ray-project#65869) ## Summary Documents two facts about Ray's Sphinx configuration in the documentation style guide. Neither was written down anywhere contributors or agents would find them, and both were rediscovered from `conf.py` during recent Ray Data style passes (ray-project#65374, ray-project#65525). - Ray doesn't enable `autosectionlabel`, so a heading's text isn't a `{ref}` target on its own and every linked section needs an explicit label. Added to the cross-references section, which already showed the `(my-label)=` pattern but never said why it's required. - Ray sets `default_role = "code"`, so a bare single-backtick in reStructuredText renders as inline code, not italics or a broken role. Added as a note in the bold-and-italics section. This one nearly produced ~50 false "single backticks are a rendering bug" findings in a prior review pass. ## Why this isn't a duplicate Searched open PRs with `gh pr list --search` for `writing-style`, `autosectionlabel`, `default_role`, and `anchor`. No open PR documents these. ## Test plan Prose-only change under `doc/`. A change to only `.md` files under `doc/` runs no library test steps; the Read the Docs render gate validates the build. Both claims were verified directly against `doc/source/conf.py` (`autosectionlabel` absent from `extensions`; `default_role = "code"`). ## AI assistance Drafted with AI assistance (Claude Code). Facts verified against `doc/source/conf.py`. The submitter reviews every changed line before requesting review. Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
Summary
Three claims on the Ray Data join and save pages don't match the code. This PR corrects only those claims, deliberately leaving the surrounding prose alone so the diff is small enough to review as a technical question rather than a wording one.
Each correction is cited below. I don't own Ray Data, so please check the reasoning rather than the phrasing.
1.
saving-data.rstsets the shuffle strategy on the class, not the contextshuffle_strategyis apropertywith a setter (python/ray/data/context.py, the@propertyat ~L1246 and@shuffle_strategy.setterat ~L1258). Assigning to it on the class object rebinds the class attribute over the descriptor instead of invoking the setter. Two consequences: the example never actually selects the strategy it says it's selecting, andshuffle_strategystops working for everyDataContextinstance in that process.This is a
testcodeblock, so it runs in CI. Note that because the assignment never took effect, the block has so far only ever exercised the defaultHASH_SHUFFLE. With the fix it genuinely runsSHUFFLE_V2for the first time. I don't have a Ray build locally, so please confirm that job passes rather than taking my word for it. IfSHUFFLE_V2isn't ready to be load-bearing in a doctest, settingHASH_SHUFFLEonget_current()would fix the descriptor bug without that exposure.@gemini-code-assist flagged this on two separate passes (#65372); the value got updated to
SHUFFLE_V2but the receiver didn't.2.
partition_size_hintis documented as a live tuning parameterThe page described it as
(optional), gave it a default ofDataContext.target_max_block_size, and offered two bullets on how to size it for skew. ButDataset.joindocuments it as "Deprecated and ignored ... This parameter has no effect and will be removed in a future release" (python/ray/data/dataset.py~L3601), and passing a value emits aDeprecationWarning(~L3712).So the guidance told readers how to tune something inert. I removed the sizing advice rather than rewriting it, since there's nothing to tune.
The page also said "Expect this parameter to be deprecated in 2.58." That deprecation has already landed, so the sentence was predicting the past.
3. The aggregator pool doesn't default to 64
The page said "Defaults to 64 or
num_partitions(in cases when there are less than 64 partitions)."From
_derive_max_shuffle_aggregatorsand its caller inpython/ray/data/_internal/execution/operators/hash_shuffle.py(~L485 and ~L591):DEFAULT_MAX_HASH_SHUFFLE_AGGREGATORSis 128 (context.py~L128). So the cap is 128 rather than 64, and there's a cluster-CPU bound the page never mentioned.One thing worth a maintainer's eye: the comment on the
max_hash_shuffle_aggregatorsfield (context.py~L886) says the unset default is the smaller of "Total # of CPUs available in the cluster * 2" and 128. The code has no* 2. I documented the code, not the comment, but one of the two is stale and I can't tell which is intended.Out of scope
These pages have wider style and prose issues, plus a genuine RST rendering bug in the join-type lists. Those are handled separately in #65374 so this PR stays reviewable as a technical correction. #65374 touches the same region of
joining-data.rst, so whichever merges second needs a trivial rebase.