Skip to content

Commit 9d6a443

Browse files
authored
fix(docs): Update broken links to TableProvider docs (#16830)
1 parent 3869857 commit 9d6a443

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

datafusion/catalog/src/default_table_source.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ use datafusion_expr::{Expr, TableProviderFilterPushDown, TableSource, TableType}
3333
///
3434
/// It is used so logical plans in the `datafusion_expr` crate do not have a
3535
/// direct dependency on physical plans, such as [`TableProvider`]s.
36-
///
37-
/// [`TableProvider`]: https://docs.rs/datafusion/latest/datafusion/datasource/provider/trait.TableProvider.html
3836
pub struct DefaultTableSource {
3937
/// table provider
4038
pub table_provider: Arc<dyn TableProvider>,

datafusion/expr/src/table_source.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use std::{any::Any, borrow::Cow};
3232
/// the filter") are returned. Rows that evaluate to `false` or `NULL` are
3333
/// omitted.
3434
///
35-
/// [`TableProvider::scan`]: https://docs.rs/datafusion/latest/datafusion/datasource/provider/trait.TableProvider.html#tymethod.scan
35+
/// [`TableProvider::scan`]: https://docs.rs/datafusion/latest/datafusion/datasource/trait.TableProvider.html#tymethod.scan
3636
#[derive(Debug, Clone, PartialEq, Eq)]
3737
pub enum TableProviderFilterPushDown {
3838
/// The filter cannot be used by the provider and will not be pushed down.
@@ -89,7 +89,7 @@ impl std::fmt::Display for TableType {
8989
/// plan code be dependent on the DataFusion execution engine. Some projects use
9090
/// DataFusion's logical plans and have their own execution engine.
9191
///
92-
/// [`TableProvider`]: https://docs.rs/datafusion/latest/datafusion/datasource/provider/trait.TableProvider.html
92+
/// [`TableProvider`]: https://docs.rs/datafusion/latest/datafusion/datasource/trait.TableProvider.html
9393
/// [`DefaultTableSource`]: https://docs.rs/datafusion/latest/datafusion/datasource/default_table_source/struct.DefaultTableSource.html
9494
pub trait TableSource: Sync + Send {
9595
fn as_any(&self) -> &dyn Any;

docs/source/library-user-guide/building-logical-plans.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ However, it is more common to use a [TableProvider]. To get a [TableSource] from
220220
[logicaltablesource]: https://docs.rs/datafusion-expr/latest/datafusion_expr/logical_plan/builder/struct.LogicalTableSource.html
221221
[defaulttablesource]: https://docs.rs/datafusion/latest/datafusion/datasource/default_table_source/struct.DefaultTableSource.html
222222
[provider_as_source]: https://docs.rs/datafusion/latest/datafusion/datasource/default_table_source/fn.provider_as_source.html
223-
[tableprovider]: https://docs.rs/datafusion/latest/datafusion/datasource/provider/trait.TableProvider.html
223+
[tableprovider]: https://docs.rs/datafusion/latest/datafusion/datasource/trait.TableProvider.html
224224
[tablesource]: https://docs.rs/datafusion-expr/latest/datafusion_expr/trait.TableSource.html
225225
[`executionplan`]: https://docs.rs/datafusion/latest/datafusion/physical_plan/trait.ExecutionPlan.html
226226
[`sessionstate::create_physical_plan`]: https://docs.rs/datafusion/latest/datafusion/execution/session_state/struct.SessionState.html#method.create_physical_plan

0 commit comments

Comments
 (0)