From 67e90fa77294d3db6d7532ec15b758c7b6def13c Mon Sep 17 00:00:00 2001 From: Michael Xu Date: Sat, 3 Feb 2024 21:15:48 -0500 Subject: [PATCH] fix check --- .../optimizer/plan_expr_rewriter/const_case_when_rewriter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/optimizer/plan_expr_rewriter/const_case_when_rewriter.rs b/src/frontend/src/optimizer/plan_expr_rewriter/const_case_when_rewriter.rs index c96ce5b2a3c27..69579a1929c80 100644 --- a/src/frontend/src/optimizer/plan_expr_rewriter/const_case_when_rewriter.rs +++ b/src/frontend/src/optimizer/plan_expr_rewriter/const_case_when_rewriter.rs @@ -22,9 +22,9 @@ pub struct ConstCaseWhenRewriter { impl ExprRewriter for ConstCaseWhenRewriter { fn rewrite_function_call(&mut self, func_call: FunctionCall) -> ExprImpl { - if func_call.func_type() != ExprType::ConstantLookup || + if func_call.func_type() != ExprType::ConstantLookup // Normal constant lookup pass - func_call.inputs().len() != 1 + || func_call.inputs().len() != 1 { return func_call.into(); }