From 8e3236dca25915a29e3efc2d9f556f64846e9f68 Mon Sep 17 00:00:00 2001 From: Zach41 Date: Thu, 7 Dec 2023 05:46:18 +0000 Subject: [PATCH] Fix zipf type deduction error --- src/sql/engine/expr/ob_expr_zipf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sql/engine/expr/ob_expr_zipf.cpp b/src/sql/engine/expr/ob_expr_zipf.cpp index 5ce25307d..66f05136d 100644 --- a/src/sql/engine/expr/ob_expr_zipf.cpp +++ b/src/sql/engine/expr/ob_expr_zipf.cpp @@ -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; }