bugfix : blob in xml must be xmlbinary & xml generate col can not with clob & some agg cannot exe with json/xml/clob

This commit is contained in:
obdev
2023-06-05 13:12:24 +00:00
committed by ob-robot
parent e3e9ed5a7d
commit 5ee385a004
2 changed files with 7 additions and 2 deletions

View File

@ -1960,7 +1960,12 @@ int ObRawExprDeduceType::check_group_aggr_param(ObAggFunRawExpr &expr)
|| ob_is_user_defined_sql_type(param_expr->get_data_type()))
&& (T_FUN_ORA_JSON_OBJECTAGG != expr.get_expr_type()
&& T_FUN_ORA_JSON_ARRAYAGG != expr.get_expr_type()
&& T_FUN_ORA_XMLAGG != expr.get_expr_type()))
&& T_FUN_ORA_XMLAGG != expr.get_expr_type()
&& T_FUN_GROUP_CUME_DIST != expr.get_expr_type()
&& T_FUN_GROUP_DENSE_RANK != expr.get_expr_type()
&& T_FUN_GROUP_CONCAT != expr.get_expr_type()
&& T_FUN_GROUP_PERCENT_RANK != expr.get_expr_type()
&& T_FUN_GROUP_RANK != expr.get_expr_type()))
&& !(T_FUN_COUNT == expr.get_expr_type() && ob_is_json(param_expr->get_data_type()))
&& !(T_FUN_COUNT == expr.get_expr_type() && (ob_is_user_defined_sql_type(param_expr->get_data_type()) ||
ob_is_user_defined_pl_type(param_expr->get_data_type())))