Apache DataFusion SQL Query Engine
fix(docs): Update broken links to `TableProvider` docs (#16830)
Sherin Jacob9d6a4430cb39
diff --git a/datafusion/catalog/src/default_table_source.rs b/datafusion/catalog/src/default_table_source.rsindex 9db8242caa..c61c7919ea 100644--- a/datafusion/catalog/src/default_table_source.rs+++ b/datafusion/catalog/src/default_table_source.rs@@ -33,8 +33,6 @@ use datafusion_expr::{Expr, TableProviderFilterPushDown, TableSource, TableType}////// It is used so logical plans in the `datafusion_expr` crate do not have a/// direct dependency on physical plans, such as [`TableProvider`]s.-///-/// [`TableProvider`]: https://docs.rs/datafusion/latest/datafusion/datasource/provider/trait.TableProvider.htmlpub struct DefaultTableSource {/// table providerpub table_provider: Arc<dyn TableProvider>,diff --git a/datafusion/expr/src/table_source.rs b/datafusion/expr/src/table_source.rsindex d6155cfb5d..81fec4a1b0 100644--- a/datafusion/expr/src/table_source.rs+++ b/datafusion/expr/src/table_source.rs@@ -32,7 +32,7 @@ use std::{any::Any, borrow::Cow};/// the filter") are returned. Rows that evaluate to `false` or `NULL` are/// omitted.///-/// [`TableProvider::scan`]: https://docs.rs/datafusion/latest/datafusion/datasource/provider/trait.TableProvider.html#tymethod.scan+/// [`TableProvider::scan`]: https://docs.rs/datafusion/latest/datafusion/datasource/trait.TableProvider.html#tymethod.scan#[derive(Debug, Clone, PartialEq, Eq)]pub enum TableProviderFilterPushDown {/// The filter cannot be used by the provider and will not be pushed down.@@ -89,7 +89,7 @@ impl std::fmt::Display for TableType {/// plan code be dependent on the DataFusion execution engine. Some projects use/// DataFusion's logical plans and have their own execution engine.///-/// [`TableProvider`]: https://docs.rs/datafusion/latest/datafusion/datasource/provider/trait.TableProvider.html+/// [`TableProvider`]: https://docs.rs/datafusion/latest/datafusion/datasource/trait.TableProvider.html/// [`DefaultTableSource`]: https://docs.rs/datafusion/latest/datafusion/datasource/default_table_source/struct.DefaultTableSource.htmlpub trait TableSource: Sync + Send {fn as_any(&self) -> &dyn Any;diff --git a/docs/source/library-user-guide/building-logical-plans.md b/docs/source/library-user-guide/building-logical-plans.mdindex ad53857bc1..05b1ae3cdd 100644--- a/docs/source/library-user-guide/building-logical-plans.md+++ b/docs/source/library-user-guide/building-logical-plans.md@@ -220,7 +220,7 @@ However, it is more common to use a [TableProvider]. To get a [TableSource] from[logicaltablesource]: https://docs.rs/datafusion-expr/latest/datafusion_expr/logical_plan/builder/struct.LogicalTableSource.html[defaulttablesource]: https://docs.rs/datafusion/latest/datafusion/datasource/default_table_source/struct.DefaultTableSource.html[provider_as_source]: https://docs.rs/datafusion/latest/datafusion/datasource/default_table_source/fn.provider_as_source.html-[tableprovider]: https://docs.rs/datafusion/latest/datafusion/datasource/provider/trait.TableProvider.html+[tableprovider]: https://docs.rs/datafusion/latest/datafusion/datasource/trait.TableProvider.html[tablesource]: https://docs.rs/datafusion-expr/latest/datafusion_expr/trait.TableSource.html[`executionplan`]: https://docs.rs/datafusion/latest/datafusion/physical_plan/trait.ExecutionPlan.html[`sessionstate::create_physical_plan`]: https://docs.rs/datafusion/latest/datafusion/execution/session_state/struct.SessionState.html#method.create_physical_plan