Skip to content

docs: Run the 57.0.0 upgrade guide examples as doctests - #27916

Open
alamb wants to merge 2 commits into
apache:mainfrom
alamb:alamb/doctest-upgrade-guide
Open

alamb wants to merge 2 commits into
apache:mainfrom
alamb:alamb/doctest-upgrade-guide

Conversation

@alamb

@alamb alamb commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

The Rust examples in the upgrade guide for the version under development are not compiled, so nothing tells us when an example is wrong or goes stale before the release. datafusion/core/src/lib.rs only ran the guides for 46.0.0 through 53.0.0 as doctests, and those were removed in #27769.

What changes are included in this PR?

  • Run docs/source/library-user-guide/upgrading/index.md (the 57.0.0 guide) as a doctest.

What is the testing strategy for this PR?

CI

Are there any user-facing changes?

No

@github-actions github-actions Bot added documentation Improvements or additions to documentation core Core DataFusion crate labels Dec 1, 2026
alamb and others added 2 commits December 1, 2026 15:56
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@alamb
alamb force-pushed the alamb/doctest-upgrade-guide branch from f3e8972 to b5471c8 Compare December 1, 2026 20:56
@alamb
alamb marked this pull request as ready for review December 1, 2026 20:58
);

#[cfg(doctest)]
doc_comment::doctest!(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this runs the examples as real doc tests


```rust,ignore
```rust
# use std::sync::Arc;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add various stuff needed to make it compile and run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant