[bugfix] group by pullup does not handle lob properly

This commit is contained in:
obdev
2022-12-02 02:35:45 +00:00
committed by ob-robot
parent 37b2be463f
commit 69a1f05080
6 changed files with 38 additions and 27 deletions

View File

@ -1232,8 +1232,15 @@ int ObTransformViewMerge::wrap_case_when(ObSelectStmt &child_stmt,
case_when_expr,
ctx_))) {
LOG_WARN("failed to build case when expr", K(ret));
} else {
expr = case_when_expr;
} else if (OB_ISNULL(case_when_expr)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("case expr is null", K(ret), K(case_when_expr));
} else if (OB_FAIL(ObRawExprUtils::try_add_cast_expr_above(ctx_->expr_factory_,
ctx_->session_info_,
*case_when_expr,
expr->get_result_type(),
expr))) {
LOG_WARN("failed to add cast expr above", K(ret));
}
}
return ret;