optimizer gather histogram and memory use

This commit is contained in:
wangt1xiuyi
2023-07-24 10:48:49 +00:00
committed by ob-robot
parent 5801f3942d
commit aa5ad5f91b
10 changed files with 471 additions and 150 deletions

View File

@ -3252,7 +3252,11 @@ int ObRawExprDeduceType::add_implicit_cast(ObAggFunRawExpr &parent,
(parent.get_expr_type() == T_FUN_REGR_SXY && i == 1) ||
(parent.get_expr_type() == T_FUN_JSON_OBJECTAGG && i == 1) ||
(parent.get_expr_type() == T_FUN_ORA_JSON_OBJECTAGG && i > 0) ||
(parent.get_expr_type() == T_FUN_ORA_XMLAGG && i > 0)) {
(parent.get_expr_type() == T_FUN_ORA_XMLAGG && i > 0) ||
((parent.get_expr_type() == T_FUN_SUM ||
parent.get_expr_type() == T_FUN_AVG ||
parent.get_expr_type() == T_FUN_COUNT) &&
child_ptr->get_expr_type() == T_FUN_SYS_OP_OPNSIZE)) {
//do nothing
} else if (parent.get_expr_type() == T_FUN_WM_CONCAT ||
parent.get_expr_type() == T_FUN_KEEP_WM_CONCAT ||