Skip to content

[Data][Docs] Fix broken DataContext attr reference in read_orc docstring - #67071

Merged
matthewdeng merged 1 commit into
masterfrom
djs-261015-fix-read-orc-attr-ref
Oct 15, 2026
Merged

matthewdeng merged 1 commit into
masterfrom
djs-261015-fix-read-orc-attr-ref

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

Why are these changes needed?

#66524 added a note to the read_orc docstring that links use_datasource_v2 with :attr:. DataContext documents 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:

python/ray/data/read_api.py:docstring of ray.data.read_api.read_orc:5: WARNING:
py:attr reference target not found: ray.data.context.DataContext.use_datasource_v2 [ref.attr]

First failing master build: https://app.readthedocs.com/projects/anyscale-ray/builds/4574050/

This PR links the DataContext class, 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-build line so this PR's preview actually builds the docs.

cc @jiangxt2 @richardliaw

Related issue number

Follow-up to #66524.

Checks

  • Not a duplicate: no open PR touches this reference. Searched open PRs for use_datasource_v2 and read_orc.
  • python ci/ray_ci/doc/check_docstring_only.py --base upstream/master: passes, 1 file, docstrings only. This PR carries the docstring-only label.
  • pre-commit run --files python/ray/data/read_api.py: passes.
  • I didn't run a full Sphinx build locally. The @rtd-build preview on this PR verifies the build.
  • AI assistance (Claude Code) was used to triage the build failure and draft this change. I reviewed the change.

🤖 Generated with Claude Code

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]>
@dstrodtman
dstrodtman requested a review from a team as a code owner October 15, 2026 13:18
@dstrodtman dstrodtman added go add ONLY when ready to merge, run all tests docstring-only Skip heavy library tests for Ray API docstring edits. labels Oct 15, 2026

@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 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.

Copy link
Copy Markdown
Contributor

Hi, #67063 is also a documentation follow-up to #66524, adding guidance on falling back to the V1 reader. I'd appreciate a review when you have a chance. Thanks!

@matthewdeng
matthewdeng merged commit 49b4097 into master Oct 15, 2026
5 checks passed
@matthewdeng
matthewdeng deleted the djs-261015-fix-read-orc-attr-ref branch October 15, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docstring-only Skip heavy library tests for Ray API docstring edits. go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants