[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

@ -923,8 +923,15 @@ int ObTransformGroupByPullup::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 when expr is null", K(ret));
} 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", K(ret));
}
}
return ret;