Skip to content

Commit

Permalink
Fix some typos (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee authored Apr 22, 2021
1 parent 434fbf7 commit 395d9d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datafusion/src/optimizer/constant_folding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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`
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 395d9d6

Please sign in to comment.