Repository navigation
[Data][Docs] Fix broken DataContext attr reference in read_orc docstring - #67071
Merged
Merged
Conversation
The read_orc docstring linked use_datasource_v2 with :attr:, but DataContext documents its fields in its class docstring rather than as separate attribute targets, so the reference doesn't resolve. With warnings treated as errors, this fails the master Read the Docs build. Link the DataContext class and name the setting as inline code instead. @rtd-build 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 docstring for the read_orc function in python/ray/data/read_api.py to correct the Sphinx documentation reference style for use_datasource_v2 and DataContext. There are no review comments to evaluate, and the changes look correct.
Contributor
matthewdeng
approved these changes
Oct 15, 2026
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?
#66524 added a note to the
read_orcdocstring that linksuse_datasource_v2with:attr:.DataContextdocuments its fields in its class docstring rather than as separate attribute targets, so the reference doesn't resolve. Read the Docs treats warnings as errors, so every master docs build since that merge fails:First failing master build: https://app.readthedocs.com/projects/anyscale-ray/builds/4574050/
This PR links the
DataContextclass, which resolves, and names the setting as inline code. It changes no other wording.The RtD preview on #66524 never ran. Code-only PRs skip the preview, and each of its three preview builds was cancelled within about 25 seconds. The check still showed green. This commit carries an
@rtd-buildline so this PR's preview actually builds the docs.cc @jiangxt2 @richardliaw
Related issue number
Follow-up to #66524.
Checks
use_datasource_v2andread_orc.python ci/ray_ci/doc/check_docstring_only.py --base upstream/master: passes, 1 file, docstrings only. This PR carries thedocstring-onlylabel.pre-commit run --files python/ray/data/read_api.py: passes.@rtd-buildpreview on this PR verifies the build.🤖 Generated with Claude Code