Fix zipf type deduction error

This commit is contained in:
Zach41 2023-12-07 05:46:18 +00:00 committed by ob-robot
parent ee813b8909
commit 8e3236dca2

View File

@ -93,6 +93,8 @@ int ObExprZipf::calc_result_type3(ObExprResType &result_type,
size.set_calc_type(ObIntType);
rand_expr.set_calc_type(ObIntType);
result_type.set_int();
ObAccuracy default_acc = ObAccuracy::MAX_ACCURACY2[lib::is_oracle_mode()][ObIntType];
result_type.set_accuracy(default_acc);
return ret;
}