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

@ -15,25 +15,39 @@
#include "sql/engine/expr/ob_expr_operator.h"
namespace oceanbase {
namespace sql {
class ObExprBenchmark : public ObFuncExprOperator {
namespace oceanbase
{
namespace sql
{
class ObExprBenchmark : public ObFuncExprOperator
{
public:
explicit ObExprBenchmark(common::ObIAllocator &alloc);
virtual ~ObExprBenchmark(){};
virtual int calc_result_type2(
ObExprResType &type, ObExprResType &type1, ObExprResType &type2, ObExprTypeCtx &type_ctx) const;
virtual int calc_result2(ObObj &res, const ObObj &obj1, const ObObj &obj2, ObExprCtx &expr_ctx) const;
virtual int cg_expr(ObExprCGCtx &expr_cg_ctx, const ObRawExpr &raw_expr, ObExpr &rt_expr) const;
virtual ~ObExprBenchmark() {};
virtual int calc_result_type2(ObExprResType &type,
ObExprResType &type1,
ObExprResType &type2,
ObExprTypeCtx &type_ctx) const;
static int eval_benchmark(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &expr_datum);
virtual int cg_expr(ObExprCGCtx &expr_cg_ctx, const ObRawExpr &raw_expr,
ObExpr &rt_expr) const;
static int eval_benchmark(const ObExpr &expr,
ObEvalCtx &ctx,
ObDatum &expr_datum);
static int eval_benchmark_batch(const ObExpr &expr,
ObEvalCtx &ctx,
const ObBitVector &skip,
const int64_t batch_size);
private:
static int collect_exprs(common::ObIArray<ObExpr *> &exprs, const ObExpr &root_expr, ObEvalCtx &ctx);
static void clear_all_flags(common::ObIArray<ObExpr *> &exprs, ObEvalCtx &ctx);
static int collect_exprs(common::ObIArray<ObExpr *> &exprs,
const ObExpr &root_expr,
ObEvalCtx &ctx);
static int clear_all_flags(common::ObIArray<ObExpr *> &exprs, ObEvalCtx &ctx);
DISALLOW_COPY_AND_ASSIGN(ObExprBenchmark);
};
} // namespace sql
} // namespace oceanbase
}
}
#endif /* OCEANBASE_SQL_ENGINE_EXPR_OB_EXPR_BENCHMARK_ */