diff --git a/src/frontend/src/optimizer/plan_node/utils.rs b/src/frontend/src/optimizer/plan_node/utils.rs index 87e7b82b73293..e389054c8caa2 100644 --- a/src/frontend/src/optimizer/plan_node/utils.rs +++ b/src/frontend/src/optimizer/plan_node/utils.rs @@ -535,11 +535,11 @@ pub fn range_to_string(name: &str, range: &(Bound, Bound format!("{} {} {:?}", name, op, v) } (lb, ub) => { - let (u_op, u_v) = ub_to_op_value(ub); let (l_op, l_v) = lb_to_op_value(lb); + let (u_op, u_v) = ub_to_op_value(ub); format!( "{} {} {:?} AND {} {} {:?}", - name, u_op, u_v, name, l_op, l_v + name, l_op, l_v, name, u_op, u_v ) } }