alamb opened a new pull request, #27916: URL: https://github.com/apache/datafusion/pull/27916
## Which issue does this PR close? - Follow on to https://github.com/apache/datafusion/pull/27769 Note this PR is stacked on https://github.com/apache/datafusion/pull/27769, so it includes the changes from that PR until it merges. Only the last commit is new. ## 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 are removed in https://github.com/apache/datafusion/pull/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. - Add hidden setup lines to four of the six Rust examples so that they compile and run. The rendered page is unchanged, as the docs build strips the hidden lines. Two examples are still `rust,ignore`: - The `SortMergeJoinExecNode` literal, as `datafusion-proto` is not a dependency of the `datafusion` crate. - The `CreateFunction` example, as its "Before" half uses fields that no longer exist. ## What is the testing strategy for this PR? `cargo test --doc -p datafusion --all-features -- library_user_guide_upgrading` (4 passed, 2 ignored) ## Are there any user-facing changes? No -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
