Do not report ERROR when sample rate equals 100

This commit is contained in:
ZenoWang
2024-02-06 14:49:31 +00:00
committed by ob-robot
parent 1f1d5c08ae
commit c8ef409bf3
3710 changed files with 486984 additions and 3083329 deletions

View File

@ -291,8 +291,8 @@ int ObExprColumnConv::calc_result_typeN(ObExprResType &type,
type_ctx.get_raw_expr()->get_extra() |
CM_COLUMN_CONVERT);
types[4].set_calc_meta(type);
if (ob_is_number_or_decimal_int_tc(type.get_type())) {
// decimal/number int need to setup calc accuracy
if (ob_is_decimal_int_tc(type.get_type())) {
// decimal int need to setup calc accuracy
types[4].set_calc_accuracy(type.get_accuracy());
type.set_collation_level(common::CS_LEVEL_NUMERIC);
}