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

@ -16,26 +16,24 @@
#include "sql/engine/expr/ob_expr_operator.h"
#include "sql/engine/expr/ob_expr.h"
namespace oceanbase {
namespace sql {
namespace oceanbase
{
namespace sql
{
class ObExprCGCtx;
class ObExprRowNum : public ObFuncExprOperator {
class ObExprRowNum: public ObFuncExprOperator
{
OB_UNIS_VERSION(1);
public:
explicit ObExprRowNum(common::ObIAllocator& alloc);
virtual ~ObExprRowNum();
virtual int calc_result_type0(ObExprResType& type, common::ObExprTypeCtx& type_ctx) const;
virtual int calc_result0(common::ObObj& result, common::ObExprCtx& expr_ctx) const;
explicit ObExprRowNum(common::ObIAllocator &alloc);
virtual ~ObExprRowNum();
virtual int calc_result_type0(ObExprResType &type, common::ObExprTypeCtx &type_ctx) const;
// CG && evaluating function for static typing engine
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
static int rownum_eval(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
void set_op_id(uint64_t operator_id)
{
operator_id_ = operator_id;
}
virtual int cg_expr(ObExprCGCtx &op_cg_ctx,
const ObRawExpr &raw_expr,
ObExpr &rt_expr) const override;
static int rownum_eval(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &expr_datum);
void set_op_id(uint64_t operator_id) { operator_id_ = operator_id; }
private:
uint64_t operator_id_;
DISALLOW_COPY_AND_ASSIGN(ObExprRowNum);