diff --git a/src/sql/engine/expr/ob_expr_operator.cpp b/src/sql/engine/expr/ob_expr_operator.cpp index b43f76dc4f..674f068b5b 100644 --- a/src/sql/engine/expr/ob_expr_operator.cpp +++ b/src/sql/engine/expr/ob_expr_operator.cpp @@ -4903,6 +4903,7 @@ int ObMinMaxExprOperator::calc_result_meta_for_comparison( max_length = MAX(max_length, types_stack[i].get_length()); } type.set_length(static_cast(max_length)); + type.set_scale(SCALE_UNKNOWN_YET); } else { int64_t max_scale = 0; int64_t max_precision = 0;