bugfix : json arrayagg not support distinct clause

This commit is contained in:
obdev
2022-11-23 13:37:55 +00:00
committed by wangzelin.wzl
parent 69c03f5790
commit 481c969b7d
2 changed files with 18 additions and 13 deletions

View File

@ -3804,7 +3804,7 @@ int ObRawExprResolverImpl::process_agg_node(const ParseNode *node, ObRawExpr *&e
int64_t pos = (T_FUN_GROUPING == node->type_) ? 0 : 1;
if ((T_FUN_VAR_POP == node->type_ || T_FUN_VAR_SAMP == node->type_ ||
T_FUN_STDDEV_POP == node->type_ || T_FUN_STDDEV_SAMP == node->type_
|| T_FUN_MEDIAN == node->type_) &&
|| T_FUN_MEDIAN == node->type_ || T_FUN_JSON_ARRAYAGG == node->type_) &&
node->children_[0] != NULL && node->children_[0]->type_ == T_DISTINCT) {
ret = OB_DISTINCT_NOT_ALLOWED;
LOG_WARN("distinct not allowed in aggr", K(ret));