patch 4.0

This commit is contained in:
wangzelin.wzl
2022-10-24 10:34:53 +08:00
parent 4ad6e00ec3
commit 93a1074b0c
10533 changed files with 2588271 additions and 2299373 deletions

View File

@ -17,9 +17,9 @@
using namespace oceanbase::sql;
using namespace oceanbase::common;
ObExprConnectByRoot::ObExprConnectByRoot(common::ObIAllocator& alloc)
: ObExprOperator(alloc, T_OP_CONNECT_BY_ROOT, N_CONNECT_BY_ROOT, 1, NOT_ROW_DIMENSION){};
int ObExprConnectByRoot::calc_result_type1(ObExprResType& type, ObExprResType& type1, ObExprTypeCtx& type_ctx) const
ObExprConnectByRoot::ObExprConnectByRoot(common::ObIAllocator &alloc)
: ObExprOperator(alloc, T_OP_CONNECT_BY_ROOT, N_CONNECT_BY_ROOT, 1, NOT_ROW_DIMENSION, INTERNAL_IN_MYSQL_MODE) {};
int ObExprConnectByRoot::calc_result_type1(ObExprResType &type, ObExprResType &type1, ObExprTypeCtx &type_ctx) const
{
int ret = OB_SUCCESS;
type = type1;
@ -27,15 +27,8 @@ int ObExprConnectByRoot::calc_result_type1(ObExprResType& type, ObExprResType& t
return ret;
}
int ObExprConnectByRoot::calc_result1(ObObj& result, const ObObj& obj, ObExprCtx& expr_ctx) const
{
int ret = OB_SUCCESS;
result = obj;
UNUSED(expr_ctx);
return ret;
}
int ObExprConnectByRoot::cg_expr(ObExprCGCtx&, const ObRawExpr&, ObExpr& rt_expr) const
int ObExprConnectByRoot::cg_expr(ObExprCGCtx &, const ObRawExpr &, ObExpr &rt_expr) const
{
int ret = OB_SUCCESS;
CK(1 == rt_expr.arg_cnt_);
@ -43,10 +36,12 @@ int ObExprConnectByRoot::cg_expr(ObExprCGCtx&, const ObRawExpr&, ObExpr& rt_expr
return ret;
}
int ObExprConnectByRoot::eval_connect_by_root(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum)
int ObExprConnectByRoot::eval_connect_by_root(const ObExpr &expr,
ObEvalCtx &ctx,
ObDatum &expr_datum)
{
int ret = OB_SUCCESS;
ObDatum* arg = NULL;
ObDatum *arg = NULL;
if (OB_FAIL(expr.eval_param_value(ctx, arg))) {
LOG_WARN("expression evaluate parameters failed", K(ret));
} else {