Apache DataFusion SQL Query Engine
Improve docs and fix a typo (#10798)
张林伟ece7ae5eca45
diff --git a/datafusion/execution/src/task.rs b/datafusion/execution/src/task.rsindex 9370084a73..b3a510ef2a 100644--- a/datafusion/execution/src/task.rs+++ b/datafusion/execution/src/task.rs@@ -58,7 +58,7 @@ pub struct TaskContext {impl Default for TaskContext {fn default() -> Self {let runtime = RuntimeEnv::new(RuntimeConfig::new())- .expect("defauly runtime created successfully");+ .expect("default runtime created successfully");// Create a default task context, mostly useful for testingSelf {diff --git a/datafusion/expr/src/expr_schema.rs b/datafusion/expr/src/expr_schema.rsindex 57470db2e0..7ea0313bf7 100644--- a/datafusion/expr/src/expr_schema.rs+++ b/datafusion/expr/src/expr_schema.rs@@ -69,8 +69,8 @@ impl ExprSchemable for Expr {////// # Examples///- /// ## Get the type of an expression that adds 2 columns. Adding an Int32- /// ## and Float32 results in Float32 type+ /// Get the type of an expression that adds 2 columns. Adding an Int32+ /// and Float32 results in Float32 type////// ```/// # use arrow::datatypes::{DataType, Field};diff --git a/datafusion/expr/src/udf.rs b/datafusion/expr/src/udf.rsindex dd1f6200d0..0f3790e9d4 100644--- a/datafusion/expr/src/udf.rs+++ b/datafusion/expr/src/udf.rs@@ -445,8 +445,8 @@ pub trait ScalarUDFImpl: Debug + Send + Sync {/// optimizations manually for specific UDFs.////// # Arguments- /// * 'args': The arguments of the function- /// * 'schema': The schema of the function+ /// * `args`: The arguments of the function+ /// * `info`: The necessary information for simplification////// # Returns/// [`ExprSimplifyResult`] indicating the result of the simplification NOTE