This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new ece7ae5eca Improve docs and fix a typo (#10798)
ece7ae5eca is described below
commit ece7ae5eca451bb2599f13f9f9197fd93b2a8bc2
Author: 张林伟 <[email protected]>
AuthorDate: Wed Jun 5 17:57:49 2024 +0800
Improve docs and fix a typo (#10798)
---
datafusion/execution/src/task.rs | 2 +-
datafusion/expr/src/expr_schema.rs | 4 ++--
datafusion/expr/src/udf.rs | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/datafusion/execution/src/task.rs b/datafusion/execution/src/task.rs
index 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 testing
Self {
diff --git a/datafusion/expr/src/expr_schema.rs
b/datafusion/expr/src/expr_schema.rs
index 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.rs
index 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]