File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1515// specific language governing permissions and limitations
1616// under the License.
1717
18- //! Boolean comparision rule rewrites redudant comparison expression involing boolean literal into
18+ //! Boolean comparison rule rewrites redundant comparison expression involving boolean literal into
1919//! unary expression.
2020
2121use std:: sync:: Arc ;
@@ -30,7 +30,7 @@ use crate::scalar::ScalarValue;
3030
3131/// Optimizer that simplifies comparison expressions involving boolean literals.
3232///
33- /// Recursively go through all expressionss and simplify the following cases:
33+ /// Recursively go through all expressions and simplify the following cases:
3434/// * `expr = true` and `expr != false` to `expr` when `expr` is of boolean type
3535/// * `expr = false` and `expr != true` to `!expr` when `expr` is of boolean type
3636/// * `true = true` and `false = false` to `true`
@@ -253,7 +253,7 @@ mod tests {
253253 }
254254
255255 #[ test]
256- fn optimize_expr_null_comparision ( ) -> Result < ( ) > {
256+ fn optimize_expr_null_comparison ( ) -> Result < ( ) > {
257257 let schema = expr_test_schema ( ) ;
258258 let mut rewriter = ConstantRewriter {
259259 schemas : vec ! [ & schema] ,
You can’t perform that action at this time.
0 commit comments