[CP] fix extract onetime expr with set op cause coredump

This commit is contained in:
ChangerR 2022-11-21 15:05:32 +00:00 committed by wangzelin.wzl
parent 7dc86ccbb7
commit 0eef672f1a

View File

@ -1043,7 +1043,8 @@ int ObTransformPostProcess::extract_onetime_subquery(ObRawExpr *&expr,
!expr->has_flag(CNT_AGG) &&
!expr->has_flag(CNT_WINDOW_FUNC) &&
!expr->has_flag(CNT_ONETIME) &&
!expr->has_flag(CNT_ALIAS);
!expr->has_flag(CNT_ALIAS) &&
!expr->has_flag(CNT_SET_OP);
if (is_valid) {
int64_t ref_count = 0;