diff --git a/src/sql/engine/expr/ob_expr_operator.cpp b/src/sql/engine/expr/ob_expr_operator.cpp index 5b1af73b91..84fa4bd58c 100644 --- a/src/sql/engine/expr/ob_expr_operator.cpp +++ b/src/sql/engine/expr/ob_expr_operator.cpp @@ -4651,7 +4651,7 @@ int ObBitwiseExprOperator::get_uint64(const ObObj &obj, } } else { // need add CM_NO_RANGE_CHECK, otherwise 1 & -3.5(float) return 0. - EXPR_DEFINE_CAST_CTX(expr_ctx, CM_NO_RANGE_CHECK); + EXPR_DEFINE_CAST_CTX(expr_ctx, CM_NO_RANGE_CHECK | CM_STRING_INTEGER_TRUNC); EXPR_GET_UINT64_V2(obj, out); } return ret;