Fix roll up with const expr bug

This commit is contained in:
obdev
2022-11-25 10:35:48 +00:00
committed by wangzelin.wzl
parent e737da9763
commit 8727754142
5 changed files with 250 additions and 3 deletions

View File

@ -1057,6 +1057,8 @@ int ObSelectLogPlan::generate_merge_group_sort_keys(ObLogicalOperator *top,
if (OB_ISNULL(expr = rollup_exprs.at(i))) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("get unexpected null", K(ret));
} else if (T_FUN_SYS_REMOVE_CONST == expr->get_expr_type()) {
/*do nothing*/
} else if (OB_FAIL(ObOptimizerUtil::is_const_expr(expr,
top->get_output_const_exprs(),
is_const))) {