Apache DataFusion SQL Query Engine
ARROW-11168: [Rust] [Doc] Fix cargo doc warnings
mqy2a7e145da3d2
diff --git a/rust/datafusion/src/error.rs b/rust/datafusion/src/error.rsindex b4c8dcc026..903faeabf6 100644--- a/rust/datafusion/src/error.rs+++ b/rust/datafusion/src/error.rs@@ -39,7 +39,7 @@ pub enum DataFusionError {ParquetError(ParquetError),/// Error associated to I/O operations and associated traits.IoError(io::Error),- /// Error returned when SQL is syntatically incorrect.+ /// Error returned when SQL is syntactically incorrect.SQL(ParserError),/// Error returned on a branch that we know it is possible/// but to which we still have no implementation for.@@ -59,7 +59,7 @@ pub enum DataFusionError {}impl DataFusionError {- /// Wraps this [DataFusionError] as an [Arrow::error::ArrowError].+ /// Wraps this [DataFusionError] as an [arrow::error::ArrowError].pub fn into_arrow_external_error(self) -> ArrowError {ArrowError::from_external_error(Box::new(self))}diff --git a/rust/datafusion/src/logical_plan/plan.rs b/rust/datafusion/src/logical_plan/plan.rsindex f120548d5e..8002d16c44 100644--- a/rust/datafusion/src/logical_plan/plan.rs+++ b/rust/datafusion/src/logical_plan/plan.rs@@ -213,7 +213,7 @@ pub enum Partitioning {RoundRobinBatch(usize),/// Allocate rows based on a hash of one of more expressions and the specified number/// of partitions.- /// This partitioning scheme is not yet fully supported. See https://issues.apache.org/jira/browse/ARROW-11011+ /// This partitioning scheme is not yet fully supported. See <https://issues.apache.org/jira/browse/ARROW-11011>Hash(Vec<Expr>, usize),}@@ -248,7 +248,7 @@ pub trait PlanVisitor {/// Invoked on a logical plan before any of its child inputs have been/// visited. If Ok(true) is returned, the recursion continues. If/// Err(..) or Ok(false) are returned, the recursion stops- /// immedately and the error, if any, is returned to `accept`+ /// immediately and the error, if any, is returned to `accept`fn pre_visit(&mut self, plan: &LogicalPlan)-> std::result::Result<bool, Self::Error>;@@ -835,9 +835,9 @@ mod tests {}}- /// test earliy stopping in pre-visit+ /// test early stopping in pre-visit#[test]- fn early_stoping_pre_visit() {+ fn early_stopping_pre_visit() {let mut visitor = StoppingVisitor {return_false_from_pre_in: OptionalCounter::new(2),..Default::default()@@ -853,7 +853,7 @@ mod tests {}#[test]- fn early_stoping_post_visit() {+ fn early_stopping_post_visit() {let mut visitor = StoppingVisitor {return_false_from_post_in: OptionalCounter::new(1),..Default::default()diff --git a/rust/datafusion/src/physical_plan/mod.rs b/rust/datafusion/src/physical_plan/mod.rsindex 605e5d6f44..f2b984bb30 100644--- a/rust/datafusion/src/physical_plan/mod.rs+++ b/rust/datafusion/src/physical_plan/mod.rs@@ -131,7 +131,7 @@ pub enum Partitioning {RoundRobinBatch(usize),/// Allocate rows based on a hash of one of more expressions and the specified/// number of partitions- /// This partitioning scheme is not yet fully supported. See https://issues.apache.org/jira/browse/ARROW-11011+ /// This partitioning scheme is not yet fully supported. See [ARROW-11011](https://issues.apache.org/jira/browse/ARROW-11011)Hash(Vec<Arc<dyn PhysicalExpr>>, usize),/// Unknown partitioning scheme with a known number of partitionsUnknownPartitioning(usize),diff --git a/rust/datafusion/src/physical_plan/parquet.rs b/rust/datafusion/src/physical_plan/parquet.rsindex 53b2667832..9a03afdf42 100644--- a/rust/datafusion/src/physical_plan/parquet.rs+++ b/rust/datafusion/src/physical_plan/parquet.rs@@ -60,11 +60,11 @@ pub struct ParquetExec {////// In the future it would be good to support subsets of files based on ranges of row groups/// so that we can better parallelize reads of large files across available cores (see-/// https://issues.apache.org/jira/browse/ARROW-10995).+/// [ARROW-10995](https://issues.apache.org/jira/browse/ARROW-10995)).////// We may also want to support reading Parquet files that are partitioned based on a key and/// in this case we would want this partition struct to represent multiple files for a given-/// partition key (see https://issues.apache.org/jira/browse/ARROW-11019).+/// partition key (see [ARROW-11019](https://issues.apache.org/jira/browse/ARROW-11019)).#[derive(Debug, Clone)]pub struct ParquetPartition {/// The Parquet filename for this partition