Skip to content

update pyarrow linked function name - #66154

Merged
goutamvenkat-anyscale merged 2 commits into
ray-project:masterfrom
mitanshu7:fix/write_parquet_link
Sep 17, 2026
Merged

goutamvenkat-anyscale merged 2 commits into
ray-project:masterfrom
mitanshu7:fix/write_parquet_link

Conversation

@mitanshu7

Copy link
Copy Markdown
Contributor

Description

The write_dataset link on Ray Data documentation for write_parquet under the filename_provider argument results in a 404.

Related issues

Fixes #66025

Additional information

Could not build the documentation locally as the make local command failed owing to less RAM.

@mitanshu7
mitanshu7 requested a review from a team as a code owner September 14, 2026 06:12

@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 updates the documentation in python/ray/data/dataset.py to correct a reference link, changing write_dataset to write_to_dataset for pyarrow compatibility. There are no review comments, so I have no feedback to provide.

Signed-off-by: Mitanshu Sukhwani <[email protected]>
@mitanshu7
mitanshu7 force-pushed the fix/write_parquet_link branch from 69aadf8 to a0bd7a2 Compare September 14, 2026 06:15
@ray-gardener ray-gardener Bot added docs An issue or change related to documentation data Ray Data-related issues community-contribution Contributed by the community labels Sep 14, 2026
@goutamvenkat-anyscale goutamvenkat-anyscale added the go add ONLY when ready to merge, run all tests label Sep 17, 2026
@goutamvenkat-anyscale
goutamvenkat-anyscale enabled auto-merge (squash) September 17, 2026 21:21
@goutamvenkat-anyscale
goutamvenkat-anyscale merged commit 09bf72a into ray-project:master Sep 17, 2026
8 checks passed
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
## Description
The
[write_dataset](https://arrow.apache.org/docs/python/generated/pyarrow.parquet.write_dataset.html)
link on Ray Data documentation for
[write_parquet](https://docs.ray.io/en/latest/data/api/doc/ray.data.Dataset.write_parquet.html)
under the filename_provider argument results in a 404.

## Related issues
Fixes ray-project#66025 

## Additional information
Could not build the documentation locally as the `make local` command
failed owing to less RAM.

Signed-off-by: Mitanshu Sukhwani <[email protected]>
dstrodtman added a commit that referenced this pull request Oct 30, 2026
…ataset.write_dataset (#67600)

## Summary

The `filename_provider` entry in the `Dataset.write_parquet` docstring
says Ray Data adds `{i}` to the filename for compatibility with
pyarrow's `write_to_dataset`, and links
`pyarrow.parquet.write_to_dataset`. Ray's write path doesn't call that
function. This PR points the sentence and link at
`pyarrow.dataset.write_dataset`, the function Ray actually calls.

## Before

The docstring named and linked
[`pyarrow.parquet.write_to_dataset`](https://arrow.apache.org/docs/python/generated/pyarrow.parquet.write_to_dataset.html).
#66154 put that link in place to fix a 404. The link works, and
`write_to_dataset` also accepts `basename_template`, but it isn't the
API Ray uses.

## After

The docstring names and links
[`pyarrow.dataset.write_dataset`](https://arrow.apache.org/docs/python/generated/pyarrow.dataset.write_dataset.html).
`ParquetDatasink` calls it with the `basename_template` that carries the
`{i}` requirement:


https://github.com/ray-project/ray/blob/5fe30798cd3/python/ray/data/_internal/datasource/parquet_datasink.py#L395-L399

`_get_basename_template` in the same file builds that template and
appends `{i}` when the filename lacks it (lines 336-355). Behavior is
unchanged. Only the docstring text changes.

## Subsystems

API (docstring only)

## Duplicate check

No open PR changes this docstring. I searched open PRs for
`write_parquet filename_provider` and `write_to_dataset`.

## Testing

- `python ci/ray_ci/doc/check_docstring_only.py --base "$(git merge-base
upstream/master HEAD)"`: `docstring-only guard: 1 file(s), docstrings
only.`
- Pre-commit on the changed file, including ruff, black, pydoclint, the
docstyle hook, and the master-link check: passed.
- The new target URL returns HTTP 200.

AI assistance (Claude Code) was used to prepare this PR.

🤖 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community data Ray Data-related issues docs An issue or change related to documentation go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Data] 404 link in write_parquet

2 participants