From 395d9d665800c7ea788c991b5847db828b4d88d6 Mon Sep 17 00:00:00 2001 From: Yichen Wang <18348405+Aiee@users.noreply.github.com> Date: Thu, 22 Apr 2021 21:12:08 +0800 Subject: [PATCH] Fix some typos (#31) --- datafusion/src/optimizer/constant_folding.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datafusion/src/optimizer/constant_folding.rs b/datafusion/src/optimizer/constant_folding.rs index 2fa03eb5c709..d63177b15908 100644 --- a/datafusion/src/optimizer/constant_folding.rs +++ b/datafusion/src/optimizer/constant_folding.rs @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. -//! Boolean comparision rule rewrites redudant comparison expression involing boolean literal into +//! Boolean comparison rule rewrites redundant comparison expression involving boolean literal into //! unary expression. use std::sync::Arc; @@ -30,7 +30,7 @@ use crate::scalar::ScalarValue; /// Optimizer that simplifies comparison expressions involving boolean literals. /// -/// Recursively go through all expressionss and simplify the following cases: +/// Recursively go through all expressions and simplify the following cases: /// * `expr = true` and `expr != false` to `expr` when `expr` is of boolean type /// * `expr = false` and `expr != true` to `!expr` when `expr` is of boolean type /// * `true = true` and `false = false` to `true` @@ -253,7 +253,7 @@ mod tests { } #[test] - fn optimize_expr_null_comparision() -> Result<()> { + fn optimize_expr_null_comparison() -> Result<()> { let schema = expr_test_schema(); let mut rewriter = ConstantRewriter { schemas: vec![&schema],