Remove cmake warning configuration (August)
This commit is contained in:
committed by
wangzelin.wzl
parent
0d7efce19a
commit
a6a56e21f4
@ -343,7 +343,7 @@ public:
|
||||
explicit ObDtlBasicChannel(const uint64_t tenant_id, const uint64_t id, const common::ObAddr& peer);
|
||||
virtual ~ObDtlBasicChannel();
|
||||
|
||||
virtual DtlChannelType get_channel_type()
|
||||
virtual DtlChannelType get_channel_type() override
|
||||
{
|
||||
return DtlChannelType::BASIC_CHANNEL;
|
||||
}
|
||||
@ -368,7 +368,7 @@ public:
|
||||
virtual int send(
|
||||
const ObDtlMsg& msg, int64_t timeout_ts, ObEvalCtx* eval_ctx = nullptr, bool is_eof = false) override;
|
||||
virtual int feedup(ObDtlLinkedBuffer*& buffer) override;
|
||||
virtual int attach(ObDtlLinkedBuffer*& linked_buffer, bool is_first_buffer_cached = false);
|
||||
virtual int attach(ObDtlLinkedBuffer*& linked_buffer, bool is_first_buffer_cached = false) override;
|
||||
// don't call send&flush in different threads.
|
||||
virtual int flush(bool wait = true, bool wait_response = true) override;
|
||||
|
||||
@ -397,8 +397,8 @@ public:
|
||||
int unblock_on_decrease_size(int64_t size);
|
||||
bool belong_to_receive_data();
|
||||
bool belong_to_transmit_data();
|
||||
virtual int clear_response_block();
|
||||
virtual int wait_response();
|
||||
virtual int clear_response_block() override;
|
||||
virtual int wait_response() override;
|
||||
void inc_send_buffer_cnt()
|
||||
{
|
||||
++send_buffer_cnt_;
|
||||
@ -425,12 +425,12 @@ public:
|
||||
}
|
||||
|
||||
int get_processed_buffer(int64_t timeout);
|
||||
virtual int clean_recv_list();
|
||||
virtual int clean_recv_list() override;
|
||||
void clean_broadcast_buffer();
|
||||
bool has_less_buffer_cnt();
|
||||
int push_back_send_list(ObDtlLinkedBuffer* buffer);
|
||||
|
||||
void set_dfc_idx(int64_t idx)
|
||||
void set_dfc_idx(int64_t idx) override
|
||||
{
|
||||
dfc_idx_ = idx;
|
||||
}
|
||||
@ -461,7 +461,7 @@ protected:
|
||||
return &msg_response_;
|
||||
}
|
||||
|
||||
OB_INLINE virtual bool has_msg()
|
||||
OB_INLINE virtual bool has_msg() override
|
||||
{
|
||||
return recv_buffer_cnt_ > processed_buffer_cnt_;
|
||||
}
|
||||
|
||||
@ -109,7 +109,7 @@ private:
|
||||
|
||||
public:
|
||||
int unblock_channels(int64_t data_channel_idx);
|
||||
void add_last_data_list(ObDtlChannel* ch);
|
||||
void add_last_data_list(ObDtlChannel* ch) override;
|
||||
virtual void remove_data_list(ObDtlChannel* ch, bool force) override;
|
||||
void add(ObDtlChannel* prev, ObDtlChannel* node, ObDtlChannel* next);
|
||||
virtual void set_first_no_data(ObDtlChannel* ch) override
|
||||
|
||||
@ -37,7 +37,7 @@ public:
|
||||
explicit ObDtlLocalChannel(const uint64_t tenant_id, const uint64_t id, const common::ObAddr& peer);
|
||||
virtual ~ObDtlLocalChannel();
|
||||
|
||||
virtual DtlChannelType get_channel_type()
|
||||
virtual DtlChannelType get_channel_type() override
|
||||
{
|
||||
return DtlChannelType::LOCAL_CHANNEL;
|
||||
}
|
||||
@ -46,7 +46,7 @@ public:
|
||||
virtual void destroy();
|
||||
|
||||
virtual int feedup(ObDtlLinkedBuffer*& buffer) override;
|
||||
virtual int send_message(ObDtlLinkedBuffer*& buf);
|
||||
virtual int send_message(ObDtlLinkedBuffer*& buf) override;
|
||||
|
||||
private:
|
||||
int send_shared_message(ObDtlLinkedBuffer*& buf);
|
||||
|
||||
@ -92,7 +92,7 @@ public:
|
||||
explicit ObDtlRpcChannel(const uint64_t tenant_id, const uint64_t id, const common::ObAddr& peer);
|
||||
virtual ~ObDtlRpcChannel();
|
||||
|
||||
virtual DtlChannelType get_channel_type()
|
||||
virtual DtlChannelType get_channel_type() override
|
||||
{
|
||||
return DtlChannelType::RPC_CHANNEL;
|
||||
}
|
||||
@ -101,7 +101,7 @@ public:
|
||||
virtual void destroy();
|
||||
|
||||
virtual int feedup(ObDtlLinkedBuffer*& buffer) override;
|
||||
virtual int send_message(ObDtlLinkedBuffer*& buf);
|
||||
virtual int send_message(ObDtlLinkedBuffer*& buf) override;
|
||||
};
|
||||
|
||||
} // namespace dtl
|
||||
|
||||
@ -53,7 +53,7 @@ public:
|
||||
}
|
||||
|
||||
virtual int inner_open() override;
|
||||
virtual int inner_get_next_row() = 0;
|
||||
virtual int inner_get_next_row() override = 0;
|
||||
virtual int rescan() override;
|
||||
virtual int switch_iterator() override;
|
||||
virtual int inner_close() override;
|
||||
|
||||
@ -134,7 +134,7 @@ public:
|
||||
virtual ~ObConnectByCtx()
|
||||
{}
|
||||
void reset();
|
||||
virtual void destroy()
|
||||
virtual void destroy() override
|
||||
{
|
||||
connect_by_pump_.~ObConnectByPump(); // must be call
|
||||
ObConnectByBaseCtx::destroy();
|
||||
|
||||
@ -169,7 +169,7 @@ public:
|
||||
{}
|
||||
virtual ~ObTableModifyOpInput()
|
||||
{}
|
||||
virtual void reset()
|
||||
virtual void reset() override
|
||||
{
|
||||
location_idx_ = common::OB_INVALID_INDEX;
|
||||
part_infos_.reset();
|
||||
@ -187,7 +187,7 @@ public:
|
||||
* @brief set allocator which is used for deserialize, but not all objects will use allocator
|
||||
* while deserializing, so you can override it if you need.
|
||||
*/
|
||||
virtual void set_deserialize_allocator(common::ObIAllocator* allocator)
|
||||
virtual void set_deserialize_allocator(common::ObIAllocator* allocator) override
|
||||
{
|
||||
part_infos_.set_allocator(allocator);
|
||||
}
|
||||
@ -351,9 +351,9 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
OperatorOpenOrder get_operator_open_order() const;
|
||||
virtual int inner_open();
|
||||
virtual int inner_close();
|
||||
OperatorOpenOrder get_operator_open_order() const override;
|
||||
virtual int inner_open() override;
|
||||
virtual int inner_close() override;
|
||||
|
||||
// project expressions to old style row, allocate cells from ctx_.get_allocator() if needed.
|
||||
int project_row(ObExpr* const* exprs, const int64_t cnt, common::ObNewRow& row) const;
|
||||
|
||||
@ -60,7 +60,7 @@ public:
|
||||
explicit ObExprCalcPartitionId(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprCalcPartitionId();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types_array, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types_array, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_no_partition_location(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
|
||||
static int calc_partition_level_one(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
|
||||
|
||||
@ -22,11 +22,11 @@ public:
|
||||
explicit ObExprCalcURowID(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprCalcURowID();
|
||||
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types_statck, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result_typeN(ObExprResType& type, ObExprResType* types_statck, int64_t param_num,
|
||||
common::ObExprTypeCtx& type_ctx) const override;
|
||||
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* obj_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_resultN(common::ObObj& result, const common::ObObj* obj_stack, int64_t param_num,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
virtual ~ObExprConcat();
|
||||
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
static int calc(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObIAllocator* allocator, const common::ObObjType result_type, bool is_oracle_mode);
|
||||
// Check result length with %max_result_len (if %max_result_len greater than zero)
|
||||
|
||||
@ -22,9 +22,9 @@ public:
|
||||
explicit ObExprConcatWs(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprConcatWs();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
// connect two strings by separator
|
||||
static int concat_ws(
|
||||
const common::ObString obj1, const common::ObString obj2, const int64_t buf_len, char** string_buf, int64_t& pos);
|
||||
|
||||
@ -24,9 +24,9 @@ public:
|
||||
virtual ~ObExprDiv()
|
||||
{}
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& left, const common::ObObj& right, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj& left, const common::ObObj& right, common::ObExprCtx& expr_ctx) const override;
|
||||
static int calc(common::ObObj& res, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObIAllocator* allocator, common::ObScale calc_scale);
|
||||
static int calc_for_avg(common::ObObj& res, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
|
||||
@ -38,9 +38,9 @@ public:
|
||||
explicit ObExprFormat(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprFormat();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs_array, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(common::ObObj& result, const common::ObObj* objs_array, int64_t param_num,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_format_expr(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
|
||||
|
||||
|
||||
@ -22,10 +22,10 @@ public:
|
||||
ObExprGreaterEqual();
|
||||
explicit ObExprGreaterEqual(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprGreaterEqual(){};
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result2(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int calc_resultN(common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override
|
||||
{
|
||||
|
||||
@ -24,10 +24,10 @@ public:
|
||||
ObExprGreaterThan();
|
||||
explicit ObExprGreaterThan(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprGreaterThan(){};
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result2(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int calc_resultN(common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override
|
||||
{
|
||||
|
||||
@ -21,9 +21,9 @@ class ObExprHex : public ObStringExprOperator {
|
||||
public:
|
||||
explicit ObExprHex(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprHex();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const override;
|
||||
static int calc(common::ObObj& result, const common::ObObj& text, common::ObCastCtx& cast_ctx);
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -22,8 +22,10 @@ class ObExprInitcap : public ObStringExprOperator {
|
||||
public:
|
||||
explicit ObExprInitcap(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprInitcap();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& text_obj, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type1(
|
||||
ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result1(
|
||||
common::ObObj& result, const common::ObObj& text_obj, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int initcap_string(const common::ObString& text, const common::ObCollationType cs_type,
|
||||
common::ObIAllocator* allocator, common::ObString& res_str);
|
||||
|
||||
@ -21,9 +21,9 @@ class ObExprInt2ip : public ObStringExprOperator {
|
||||
public:
|
||||
explicit ObExprInt2ip(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprInt2ip();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const override;
|
||||
static int calc(common::ObObj& result, const common::ObObj& text, common::ObExprStringBuf& string_buf);
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int int2ip_varchar(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
|
||||
@ -21,9 +21,9 @@ public:
|
||||
explicit ObExprIntDiv(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprIntDiv(){};
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result2(
|
||||
common::ObObj& res, const common::ObObj& ojb1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& res, const common::ObObj& ojb1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const override;
|
||||
static int calc(common::ObObj& res, const common::ObObj& ojb1, const common::ObObj& obj2,
|
||||
common::ObIAllocator* allocator, common::ObScale scale);
|
||||
static int div_int_int(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
@ -30,7 +30,7 @@ public:
|
||||
virtual ~ObExprInterval()
|
||||
{}
|
||||
|
||||
virtual int assign(const ObExprOperator& other);
|
||||
virtual int assign(const ObExprOperator& other) override;
|
||||
|
||||
OB_INLINE void set_use_binary_search(bool use_binary_search)
|
||||
{
|
||||
|
||||
@ -21,9 +21,9 @@ class ObExprIp2int : public ObFuncExprOperator {
|
||||
public:
|
||||
explicit ObExprIp2int(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprIp2int();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const override;
|
||||
static int calc(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx);
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int ip2int_varchar(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
|
||||
@ -59,9 +59,9 @@ public:
|
||||
virtual ~ObExprIs(){};
|
||||
|
||||
virtual int calc_with_null(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
const common::ObObj& obj3, common::ObCastCtx& cast_ctx) const;
|
||||
const common::ObObj& obj3, common::ObCastCtx& cast_ctx) const override;
|
||||
virtual int calc_with_int(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObCastCtx& cast_ctx) const;
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObCastCtx& cast_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_is_date_int_null(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
static int calc_is_null(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
@ -89,9 +89,9 @@ public:
|
||||
virtual ~ObExprIsNot(){};
|
||||
|
||||
virtual int calc_with_null(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
const common::ObObj& obj3, common::ObCastCtx& cast_ctx) const;
|
||||
const common::ObObj& obj3, common::ObCastCtx& cast_ctx) const override;
|
||||
virtual int calc_with_int(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObCastCtx& cast_ctx) const;
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObCastCtx& cast_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_is_not_null(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
static int int_is_not_true(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
virtual ~ObExprIsServingTenant();
|
||||
|
||||
virtual int calc_result_type3(ObExprResType& type, ObExprResType& type1, ObExprResType& type2, ObExprResType& type3,
|
||||
common::ObExprTypeCtx& type_ctx) const;
|
||||
common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result3(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
const common::ObObj& obj3, common::ObExprCtx& expr_ctx) const;
|
||||
const common::ObObj& obj3, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
static int eval_is_serving_tenant(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
@ -19,8 +19,8 @@ class ObExprLastExecId : public ObStringExprOperator {
|
||||
public:
|
||||
explicit ObExprLastExecId(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprLastExecId();
|
||||
virtual int calc_result_type0(ObExprResType& type, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result0(common::ObObj& result, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type0(ObExprResType& type, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result0(common::ObObj& result, common::ObExprCtx& expr_ctx) const override;
|
||||
static int eval_last_exec_id(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
explicit ObExprLastInsertID(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprLastInsertID();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types_array, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types_array, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs_array, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs_array, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -21,8 +21,8 @@ class ObExprLastTraceId : public ObStringExprOperator {
|
||||
public:
|
||||
explicit ObExprLastTraceId(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprLastTraceId();
|
||||
virtual int calc_result_type0(ObExprResType& type, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result0(common::ObObj& result, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type0(ObExprResType& type, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result0(common::ObObj& result, common::ObExprCtx& expr_ctx) const override;
|
||||
static int eval_last_trace_id(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -40,9 +40,9 @@ public:
|
||||
const char* name = N_LEAST);
|
||||
virtual ~ObExprBaseLeast();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types_stack, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types_stack, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
static int calc(common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num,
|
||||
const ObExprResType& expected_type, common::ObExprCtx& expr_ctx);
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
@ -21,9 +21,9 @@ class ObExprLength : public ObFuncExprOperator {
|
||||
public:
|
||||
explicit ObExprLength(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprLength();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const override;
|
||||
static int calc(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx);
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_null(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
static int calc_oracle_mode(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
@ -24,9 +24,9 @@ class ObExprLengthb : public ObFuncExprOperator {
|
||||
public:
|
||||
explicit ObExprLengthb(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprLengthb();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const override;
|
||||
static int calc(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx);
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_lengthb_expr(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
|
||||
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
explicit ObExprLessEqual(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprLessEqual(){};
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
static int calc(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
const common::ObCompareCtx& cmp_ctx, common::ObCastCtx& cast_ctx);
|
||||
static int calc_nocast(
|
||||
|
||||
@ -25,9 +25,9 @@ public:
|
||||
explicit ObExprLessThan(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprLessThan(){};
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
static int calc(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
const common::ObCompareCtx& cmp_ctx, common::ObCastCtx& cast_ctx);
|
||||
static int calc_nocast(
|
||||
|
||||
@ -95,9 +95,9 @@ public:
|
||||
explicit ObExprLike(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprLike();
|
||||
virtual int calc_result_type3(ObExprResType& type, ObExprResType& type1, ObExprResType& type2, ObExprResType& type3,
|
||||
common::ObExprTypeCtx& type_ctx) const;
|
||||
common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result3(common::ObObj& result, const common::ObObj& obj, const common::ObObj& pattern,
|
||||
const common::ObObj& escape, common::ObExprCtx& expr_ctx) const;
|
||||
const common::ObObj& escape, common::ObExprCtx& expr_ctx) const override;
|
||||
static int calc(common::ObObj& result, common::ObCollationType coll_type, const common::ObObj& obj,
|
||||
const common::ObObj& pattern, const common::ObObj& escape, common::ObExprCtx& expr_ctx,
|
||||
const bool is_going_optimization, const uint64_t like_id, const bool check_optimization);
|
||||
@ -105,7 +105,7 @@ public:
|
||||
static int calc_with_non_instr_mode(T& result, const common::ObCollationType coll_type,
|
||||
const common::ObCollationType escape_coll, const common::ObString& text_val, const common::ObString& pattern_val,
|
||||
const common::ObString& escape_val);
|
||||
int assign(const ObExprOperator& other);
|
||||
int assign(const ObExprOperator& other) override;
|
||||
OB_INLINE bool is_pattern_literal() const
|
||||
{
|
||||
return is_pattern_literal_;
|
||||
|
||||
@ -21,8 +21,8 @@ class ObExprFuncLnnvl : public ObFuncExprOperator {
|
||||
public:
|
||||
explicit ObExprFuncLnnvl(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprFuncLnnvl();
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& input, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& input, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
static int eval_lnnvl(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
@ -21,8 +21,8 @@ class ObExprLog10 : public ObFuncExprOperator {
|
||||
public:
|
||||
explicit ObExprLog10(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprLog10();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& obj, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& obj, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
private:
|
||||
|
||||
@ -21,8 +21,8 @@ class ObExprLog2 : public ObFuncExprOperator {
|
||||
public:
|
||||
explicit ObExprLog2(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprLog2();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& obj, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& obj, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
private:
|
||||
|
||||
@ -55,8 +55,8 @@ public:
|
||||
virtual ~ObExprLower()
|
||||
{}
|
||||
virtual int calc(const common::ObCollationType cs_type, char* src, int32_t src_len, char* dest, int32_t det_len,
|
||||
int32_t& out_len) const;
|
||||
virtual int32_t get_case_mutiply(const common::ObCollationType cs_type) const;
|
||||
int32_t& out_len) const override;
|
||||
virtual int32_t get_case_mutiply(const common::ObCollationType cs_type) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_lower(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
@ -70,8 +70,8 @@ public:
|
||||
virtual ~ObExprUpper()
|
||||
{}
|
||||
virtual int calc(const common::ObCollationType cs_type, char* src, int32_t src_len, char* dest, int32_t det_len,
|
||||
int32_t& out_len) const;
|
||||
virtual int32_t get_case_mutiply(const common::ObCollationType cs_type) const;
|
||||
int32_t& out_len) const override;
|
||||
virtual int32_t get_case_mutiply(const common::ObCollationType cs_type) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_upper(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
@ -85,8 +85,8 @@ public:
|
||||
virtual ~ObExprNlsLower()
|
||||
{}
|
||||
virtual int calc(const common::ObCollationType cs_type, char* src, int32_t src_len, char* dest, int32_t det_len,
|
||||
int32_t& out_len) const;
|
||||
virtual int32_t get_case_mutiply(const common::ObCollationType cs_type) const;
|
||||
int32_t& out_len) const override;
|
||||
virtual int32_t get_case_mutiply(const common::ObCollationType cs_type) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_lower(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
@ -100,8 +100,8 @@ public:
|
||||
virtual ~ObExprNlsUpper()
|
||||
{}
|
||||
virtual int calc(const common::ObCollationType cs_type, char* src, int32_t src_len, char* dest, int32_t det_len,
|
||||
int32_t& out_len) const;
|
||||
virtual int32_t get_case_mutiply(const common::ObCollationType cs_type) const;
|
||||
int32_t& out_len) const override;
|
||||
virtual int32_t get_case_mutiply(const common::ObCollationType cs_type) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_upper(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
|
||||
@ -100,7 +100,7 @@ public:
|
||||
virtual int calc_result3(common::ObObj& result, const common::ObObj& text, const common::ObObj& len,
|
||||
const common::ObObj& pad_text, common::ObExprCtx& expr_ctx) const override;
|
||||
// for engine 3.0
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_mysql_rpad_expr(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res);
|
||||
|
||||
private:
|
||||
@ -118,7 +118,7 @@ public:
|
||||
virtual int calc_resultN(common::ObObj& result, const common::ObObj* objs_array, int64_t param_num,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
// for engine 3.0
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_oracle_lpad_expr(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res);
|
||||
|
||||
private:
|
||||
@ -136,7 +136,7 @@ public:
|
||||
virtual int calc_resultN(common::ObObj& result, const common::ObObj* objs_array, int64_t param_num,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
// for engine 3.0
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_oracle_rpad_expr(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res);
|
||||
|
||||
private:
|
||||
|
||||
@ -24,8 +24,8 @@ public:
|
||||
virtual ~ObExprMd5();
|
||||
|
||||
public:
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& str, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& str_obj, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& str, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& str_obj, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_md5(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
explicit ObExprMinus(common::ObIAllocator& alloc, ObExprOperatorType type = T_OP_MINUS);
|
||||
virtual ~ObExprMinus(){};
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& left, const common::ObObj& right, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj& left, const common::ObObj& right, common::ObExprCtx& expr_ctx) const override;
|
||||
static int calc(common::ObObj& res, const common::ObObj& ojb1, const common::ObObj& obj2,
|
||||
common::ObIAllocator* allocator, common::ObScale scale);
|
||||
static int calc(common::ObObj& res, const common::ObObj& ojb1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx,
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
explicit ObExprMod(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprMod(){};
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result2(
|
||||
common::ObObj& res, const common::ObObj& ojb1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result2(common::ObObj& res, const common::ObObj& ojb1, const common::ObObj& obj2,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
static int calc(common::ObObj& res, const common::ObObj& ojb1, const common::ObObj& obj2,
|
||||
common::ObIAllocator* allocator, common::ObScale scale);
|
||||
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
explicit ObExprMul(common::ObIAllocator& alloc, ObExprOperatorType type = T_OP_MUL);
|
||||
virtual ~ObExprMul(){};
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& left, const common::ObObj& right, common::ObExprCtx& expr_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result2(common::ObObj& result, const common::ObObj& left, const common::ObObj& right,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
static int calc(common::ObObj& res, const common::ObObj& ojb1, const common::ObObj& obj2,
|
||||
common::ObIAllocator* allocator, common::ObScale scale);
|
||||
static int calc(common::ObObj& res, const common::ObObj& ojb1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx,
|
||||
|
||||
@ -24,15 +24,15 @@ public:
|
||||
ObExprNotEqual();
|
||||
explicit ObExprNotEqual(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprNotEqual(){};
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result2(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int calc_resultN(common::ObObj& result, const common::ObObj* objs_stack, int64_t param_num,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
static int calc(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
const common::ObCompareCtx& cmp_ctx, common::ObCastCtx& cast_ctx);
|
||||
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override
|
||||
{
|
||||
|
||||
@ -36,9 +36,9 @@ public:
|
||||
explicit ObExprRandom(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprRandom();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
inline void set_seed_const(bool is_seed_const);
|
||||
|
||||
// engine 3.0
|
||||
|
||||
@ -25,12 +25,12 @@ public:
|
||||
explicit ObExprRegexp(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprRegexp();
|
||||
|
||||
virtual int assign(const ObExprOperator& other);
|
||||
virtual int assign(const ObExprOperator& other) override;
|
||||
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& obj, const common::ObObj& pattern, common::ObExprCtx& expr_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result2(common::ObObj& result, const common::ObObj& obj, const common::ObObj& pattern,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual inline void reset()
|
||||
{
|
||||
regexp_idx_ = common::OB_COMPACT_INVALID_INDEX;
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
explicit ObExprRegexpCount(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprRegexpCount();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
explicit ObExprRegexpInstr(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprRegexpInstr();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
static int eval_regexp_instr(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
explicit ObExprRegexpLike(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprRegexpLike();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -24,9 +24,9 @@ public:
|
||||
explicit ObExprRegexpReplace(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprRegexpReplace();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
explicit ObExprRegexpSubstr(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprRegexpSubstr();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ public:
|
||||
explicit ObExprRepeat(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprRepeat();
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& text, ObExprResType& count, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType& text, ObExprResType& count, common::ObExprTypeCtx& type_ctx) const override;
|
||||
///@brief call function calc(), implementation of ObExprOperator::calc_result2()
|
||||
///
|
||||
///@param [out] result result of RPEAT(str, count)
|
||||
@ -31,7 +31,7 @@ public:
|
||||
///@param [in] allocator:ObExprStringBuf
|
||||
///@return OB_SUCCESS success, others failure
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& text, const common::ObObj& count, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj& text, const common::ObObj& count, common::ObExprCtx& expr_ctx) const override;
|
||||
static int calc(common::ObObj& result, const common::ObObj& text, const common::ObObj& count,
|
||||
common::ObIAllocator* allocator, const common::ObObjType res_type, const int64_t max_result_size);
|
||||
static int calc(common::ObObj& result, const common::ObObjType type, const common::ObString& text,
|
||||
|
||||
@ -24,7 +24,7 @@ public:
|
||||
explicit ObExprReplace(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprReplace();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types_array, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types_array, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
|
||||
static int calc(common::ObObj& result, const common::ObObj& text, const common::ObObj& from, const common::ObObj& to,
|
||||
common::ObExprStringBuf& string_buf);
|
||||
|
||||
@ -20,8 +20,9 @@ class ObExprSinh : public ObFuncExprOperator {
|
||||
public:
|
||||
explicit ObExprSinh(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprSinh();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& obj, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type1(
|
||||
ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& obj, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
private:
|
||||
|
||||
@ -20,8 +20,8 @@ class ObExprSqrt : public ObFuncExprOperator {
|
||||
public:
|
||||
explicit ObExprSqrt(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprSqrt();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& obj, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& obj, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
private:
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
explicit ObExprStrToDate(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprStrToDate();
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& date, ObExprResType& format, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& date, const common::ObObj& format, common::ObExprCtx& expr_ctx) const;
|
||||
ObExprResType& type, ObExprResType& date, ObExprResType& format, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result2(common::ObObj& result, const common::ObObj& date, const common::ObObj& format,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
private:
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
explicit ObExprStrcmp(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprStrcmp(){};
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result2(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override
|
||||
{
|
||||
|
||||
@ -30,7 +30,7 @@ public:
|
||||
|
||||
private:
|
||||
virtual int compare_single_row(const common::ObNewRow& left_row, const common::ObNewRow& right_row,
|
||||
common::ObExprCtx& expr_ctx, common::ObObj& result) const;
|
||||
common::ObExprCtx& expr_ctx, common::ObObj& result) const override;
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObExprSubQueryGreaterEqual);
|
||||
|
||||
@ -30,7 +30,7 @@ public:
|
||||
|
||||
private:
|
||||
virtual int compare_single_row(const common::ObNewRow& left_row, const common::ObNewRow& right_row,
|
||||
common::ObExprCtx& expr_ctx, common::ObObj& result) const;
|
||||
common::ObExprCtx& expr_ctx, common::ObObj& result) const override;
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObExprSubQueryGreaterThan);
|
||||
|
||||
@ -30,7 +30,7 @@ public:
|
||||
|
||||
private:
|
||||
virtual int compare_single_row(const common::ObNewRow& left_row, const common::ObNewRow& right_row,
|
||||
common::ObExprCtx& expr_ctx, common::ObObj& result) const;
|
||||
common::ObExprCtx& expr_ctx, common::ObObj& result) const override;
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObExprSubQueryLessEqual);
|
||||
|
||||
@ -30,7 +30,7 @@ public:
|
||||
|
||||
private:
|
||||
virtual int compare_single_row(const common::ObNewRow& left_row, const common::ObNewRow& right_row,
|
||||
common::ObExprCtx& expr_ctx, common::ObObj& result) const;
|
||||
common::ObExprCtx& expr_ctx, common::ObObj& result) const override;
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObExprSubQueryLessThan);
|
||||
|
||||
@ -28,7 +28,7 @@ public:
|
||||
|
||||
private:
|
||||
virtual int compare_single_row(const common::ObNewRow& left_row, const common::ObNewRow& right_row,
|
||||
common::ObExprCtx& expr_ctx, common::ObObj& result) const;
|
||||
common::ObExprCtx& expr_ctx, common::ObObj& result) const override;
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObExprSubQueryNotEqual);
|
||||
|
||||
@ -28,7 +28,7 @@ public:
|
||||
|
||||
private:
|
||||
virtual int compare_single_row(const common::ObNewRow& left_row, const common::ObNewRow& right_row,
|
||||
common::ObExprCtx& expr_ctx, common::ObObj& result) const;
|
||||
common::ObExprCtx& expr_ctx, common::ObObj& result) const override;
|
||||
DISALLOW_COPY_AND_ASSIGN(ObExprSubQueryNSEqual);
|
||||
};
|
||||
} // namespace sql
|
||||
|
||||
@ -46,11 +46,11 @@ public:
|
||||
explicit ObExprSubQueryRef(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprSubQueryRef();
|
||||
|
||||
virtual int assign(const ObExprOperator& other);
|
||||
virtual int assign(const ObExprOperator& other) override;
|
||||
|
||||
virtual void reset();
|
||||
virtual int calc_result_type0(ObExprResType& type, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result0(common::ObObj& result, common::ObExprCtx& expr_ctx) const;
|
||||
virtual void reset() override;
|
||||
virtual int calc_result_type0(ObExprResType& type, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result0(common::ObObj& result, common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int expr_eval(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
@ -23,13 +23,13 @@ public:
|
||||
explicit ObExprSubstr(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprSubstr();
|
||||
virtual int calc_result2(common::ObObj& result, const common::ObObj& text, const common::ObObj& start_pos,
|
||||
common::ObExprCtx& expr_ctx) const;
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int calc_result3(common::ObObj& result, const common::ObObj& text, const common::ObObj& start_pos,
|
||||
const common::ObObj& length, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types_stack, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs_array, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
const common::ObObj& length, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int calc_result_typeN(ObExprResType& type, ObExprResType* types_stack, int64_t param_num,
|
||||
common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(common::ObObj& result, const common::ObObj* objs_array, int64_t param_num,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
static int substr(common::ObString& output, const common::ObString& input, const int64_t pos, const int64_t len,
|
||||
common::ObCollationType cs_type);
|
||||
|
||||
@ -23,9 +23,9 @@ public:
|
||||
explicit ObExprSubstringIndex(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprSubstringIndex();
|
||||
virtual int calc_result_type3(ObExprResType& type, ObExprResType& str, ObExprResType& delim, ObExprResType& count,
|
||||
common::ObExprTypeCtx& type_ctx) const;
|
||||
common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result3(common::ObObj& result, const common::ObObj& str, const common::ObObj& delim,
|
||||
const common::ObObj& count, common::ObExprCtx& expr_ctx) const;
|
||||
const common::ObObj& count, common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -24,9 +24,9 @@ public:
|
||||
virtual ~ObExprSysConnectByPath()
|
||||
{}
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& left, const common::ObObj& right, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj& left, const common::ObObj& right, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_sys_path(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
static int eval_sys_connect_by_path(
|
||||
|
||||
@ -20,11 +20,11 @@ public:
|
||||
explicit ObExprSysPrivilegeCheck(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprSysPrivilegeCheck();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
|
||||
/// obj_array(level, tenant, db, table)
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* obj_array, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* obj_array, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int eval_sys_privilege_check(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
|
||||
@ -22,10 +22,10 @@ public:
|
||||
explicit ObExprTimeStampDiff(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprTimeStampDiff();
|
||||
virtual int calc_result_type3(ObExprResType& type, ObExprResType& unit, ObExprResType& left, ObExprResType& right,
|
||||
common::ObExprTypeCtx& type_ctx) const;
|
||||
common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result3(common::ObObj& result, const common::ObObj& unit, const common::ObObj& left,
|
||||
const common::ObObj& right, common::ObExprCtx& expr_ctx) const;
|
||||
virtual common::ObCastMode get_cast_mode() const
|
||||
const common::ObObj& right, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual common::ObCastMode get_cast_mode() const override
|
||||
{
|
||||
return CM_NULL_ON_WARN;
|
||||
}
|
||||
|
||||
@ -22,9 +22,9 @@ public:
|
||||
explicit ObExprTimestampNvl(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprTimestampNvl();
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_timestampnvl(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
|
||||
@ -21,8 +21,9 @@ public:
|
||||
ObExprToDays();
|
||||
explicit ObExprToDays(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprToDays();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& date, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& date, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type1(
|
||||
ObExprResType& type, ObExprResType& date, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& date, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
private:
|
||||
|
||||
@ -21,8 +21,8 @@ class ObExprToYMInterval : public ObFuncExprOperator {
|
||||
public:
|
||||
explicit ObExprToYMInterval(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprToYMInterval();
|
||||
int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const;
|
||||
int calc_result1(common::ObObj& result, const common::ObObj& obj, common::ObExprCtx& expr_ctx) const;
|
||||
int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const override;
|
||||
int calc_result1(common::ObObj& result, const common::ObObj& obj, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_to_yminterval(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
@ -34,8 +34,8 @@ class ObExprToDSInterval : public ObFuncExprOperator {
|
||||
public:
|
||||
explicit ObExprToDSInterval(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprToDSInterval();
|
||||
int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const;
|
||||
int calc_result1(common::ObObj& result, const common::ObObj& obj, common::ObExprCtx& expr_ctx) const;
|
||||
int calc_result_type1(ObExprResType& type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const override;
|
||||
int calc_result1(common::ObObj& result, const common::ObObj& obj, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_to_dsinterval(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
|
||||
@ -48,9 +48,9 @@ public:
|
||||
explicit ObExprNumToYMInterval(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprNumToYMInterval();
|
||||
int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
int calc_result2(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
template <class T>
|
||||
static int calc_result_common(
|
||||
const T& obj1, const T& obj2, common::ObIAllocator& calc_buf, common::ObIntervalYMValue& ym_value);
|
||||
@ -66,9 +66,9 @@ public:
|
||||
explicit ObExprNumToDSInterval(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprNumToDSInterval();
|
||||
int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
int calc_result2(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
int calc_result2(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
template <class R, class T>
|
||||
static int calc_result_common(R& result, const T& obj1, const T& obj2, common::ObIAllocator& calc_buf);
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
@ -38,7 +38,7 @@ public:
|
||||
virtual ~ObExprToNumber();
|
||||
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_(const ObString& in_str, const ObString& in_fmt_str, ObIAllocator& alloc, number::ObNumber& res_nmb);
|
||||
// for engine 3.0
|
||||
@ -54,9 +54,9 @@ public:
|
||||
virtual ~ObExprToBinaryFloat();
|
||||
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_(const ObString& in_str, const ObString& in_fmt_str, ObIAllocator& alloc, number::ObNumber& res_nmb);
|
||||
static int calc_to_binaryfloat_expr(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
|
||||
@ -71,9 +71,9 @@ public:
|
||||
virtual ~ObExprToBinaryDouble();
|
||||
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* objs, int64_t param_num, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_to_binarydouble_expr(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
|
||||
|
||||
|
||||
@ -23,10 +23,10 @@ public:
|
||||
explicit ObExprToTemporalBase(common::ObIAllocator& alloc, ObExprOperatorType type, const char* name);
|
||||
virtual ~ObExprToTemporalBase()
|
||||
{}
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types_array, int64_t param_num, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs_array, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_typeN(ObExprResType& type, ObExprResType* types_array, int64_t param_num,
|
||||
common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(common::ObObj& result, const common::ObObj* objs_array, int64_t param_num,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int set_my_result_from_ob_time(
|
||||
common::ObExprCtx& expr_ctx, common::ObTime& ob_time, common::ObObj& result) const = 0;
|
||||
virtual common::ObObjType get_my_target_obj_type() const = 0;
|
||||
|
||||
@ -41,7 +41,7 @@ public:
|
||||
const common::ObFixedArray<size_t, common::ObIAllocator>&);
|
||||
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override
|
||||
{
|
||||
return deduce_result_type(type, types, param_num, type_ctx);
|
||||
}
|
||||
@ -49,8 +49,8 @@ public:
|
||||
static int deduce_result_type(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx);
|
||||
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs_array, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_resultN(common::ObObj& result, const common::ObObj* objs_array, int64_t param_num,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
@ -84,10 +84,11 @@ public:
|
||||
explicit ObExprLtrim(common::ObIAllocator& alloc, ObExprOperatorType type, const char* name, int32_t param_num);
|
||||
virtual ~ObExprLtrim();
|
||||
|
||||
virtual int calc_result_type1(ObExprResType& res_type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result_type1(
|
||||
ObExprResType& res_type, ObExprResType& type1, common::ObExprTypeCtx& type_ctx) const override;
|
||||
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const override
|
||||
{
|
||||
return deduce_result_type(type, types, param_num, type_ctx);
|
||||
}
|
||||
@ -95,12 +96,13 @@ public:
|
||||
static int deduce_result_type(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx);
|
||||
|
||||
virtual int calc_result1(common::ObObj& res_obj, const common::ObObj& obj1, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result1(
|
||||
common::ObObj& res_obj, const common::ObObj& obj1, common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
int calc(common::ObObj& res_obj, const common::ObObj& obj1, common::ObExprCtx& expr_ctx, int64_t trim_type_val) const;
|
||||
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* objs_array, int64_t param_num, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_resultN(common::ObObj& result, const common::ObObj* objs_array, int64_t param_num,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
static int calc_oracle_mode(common::ObObj& result, const int64_t trim_type, const common::ObString& pattern,
|
||||
const common::ObString& text, const common::ObObjType& res_type, common::ObExprCtx& expr_ctx,
|
||||
|
||||
@ -27,7 +27,7 @@ public:
|
||||
|
||||
virtual int calc_result2(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int set_trunc_val(
|
||||
common::ObObj& result, common::number::ObNumber& nmb, common::ObExprCtx& expr_ctx, common::ObObjType res_type);
|
||||
|
||||
|
||||
@ -105,8 +105,8 @@ class ObExprSetToStr : public ObExprTypeToStr {
|
||||
public:
|
||||
explicit ObExprSetToStr(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprSetToStr();
|
||||
virtual int calc(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_to_str_expr(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
|
||||
|
||||
@ -119,8 +119,8 @@ class ObExprEnumToStr : public ObExprTypeToStr {
|
||||
public:
|
||||
explicit ObExprEnumToStr(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprEnumToStr();
|
||||
virtual int calc(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_to_str_expr(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
|
||||
|
||||
@ -134,9 +134,9 @@ public:
|
||||
explicit ObExprSetToInnerType(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprSetToInnerType();
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_to_inner_expr(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
|
||||
|
||||
@ -150,9 +150,9 @@ public:
|
||||
explicit ObExprEnumToInnerType(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprEnumToInnerType();
|
||||
virtual int calc_result_type2(
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc(
|
||||
common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2, common::ObExprCtx& expr_ctx) const;
|
||||
ObExprResType& type, ObExprResType& type1, ObExprResType& type2, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc(common::ObObj& result, const common::ObObj& obj1, const common::ObObj& obj2,
|
||||
common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int calc_to_inner_expr(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
|
||||
|
||||
|
||||
@ -21,8 +21,8 @@ class ObExprUid : public ObFuncExprOperator {
|
||||
public:
|
||||
explicit ObExprUid(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprUid();
|
||||
virtual int calc_result_type0(ObExprResType& type, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result0(common::ObObj& result, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type0(ObExprResType& type, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result0(common::ObObj& result, common::ObExprCtx& expr_ctx) const override;
|
||||
static int eval_uid(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -21,10 +21,11 @@ class ObExprUnhex : public ObStringExprOperator {
|
||||
public:
|
||||
explicit ObExprUnhex(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprUnhex();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const;
|
||||
static int calc(
|
||||
common::ObObj& result, const common::ObObj& text, common::ObCastCtx& cast_ctx, common::ObExprCtx& expr_ctx);
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type1(
|
||||
ObExprResType& type, ObExprResType& text, common::ObExprTypeCtx& type_ctx) const override;
|
||||
static int calc(common::ObObj& result, const common::ObObj& text, common::ObCastCtx& cast_ctx, common::ObExprCtx& expr_ctx);
|
||||
virtual int calc_result1(
|
||||
common::ObObj& result, const common::ObObj& text, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
static int eval_unhex(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res_datum);
|
||||
|
||||
|
||||
@ -22,9 +22,9 @@ public:
|
||||
explicit ObExprUnixTimestamp(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprUnixTimestamp();
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* type_array, int64_t param, common::ObExprTypeCtx& type_ctx) const;
|
||||
ObExprResType& type, ObExprResType* type_array, int64_t param, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_resultN(
|
||||
common::ObObj& result, const common::ObObj* date_param, int64_t param, common::ObExprCtx& expr_ctx) const;
|
||||
common::ObObj& result, const common::ObObj* date_param, int64_t param, common::ObExprCtx& expr_ctx) const override;
|
||||
static int calc(
|
||||
common::ObObj& result, const common::ObObj& dt_date, const ObExprResType& res_type, common::ObCastCtx& cast_ctx);
|
||||
static int eval_unix_timestamp(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res);
|
||||
|
||||
@ -20,8 +20,10 @@ class ObExprUsecToTime : public ObFuncExprOperator {
|
||||
public:
|
||||
explicit ObExprUsecToTime(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprUsecToTime();
|
||||
virtual int calc_result_type1(ObExprResType& type, ObExprResType& usec, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result1(common::ObObj& result, const common::ObObj& usec, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result_type1(
|
||||
ObExprResType& type, ObExprResType& usec, common::ObExprTypeCtx& type_ctx) const override;
|
||||
virtual int calc_result1(
|
||||
common::ObObj& result, const common::ObObj& usec, common::ObExprCtx& expr_ctx) const override;
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
private:
|
||||
|
||||
@ -22,7 +22,7 @@ public:
|
||||
explicit ObExprUser(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprUser();
|
||||
virtual int calc_result_type0(ObExprResType& type, common::ObExprTypeCtx& type_ctx) const;
|
||||
virtual int calc_result0(common::ObObj& result, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int calc_result0(common::ObObj& result, common::ObExprCtx& expr_ctx) const override;
|
||||
static int eval_user(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& expr_datum);
|
||||
virtual int cg_expr(ObExprCGCtx& op_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -25,10 +25,10 @@ public:
|
||||
explicit ObExprUserCanAccessObj(common::ObIAllocator& alloc);
|
||||
virtual ~ObExprUserCanAccessObj();
|
||||
virtual int calc_result_type3(ObExprResType& type, ObExprResType& arg1, ObExprResType& arg2, ObExprResType& arg3,
|
||||
common::ObExprTypeCtx& type_ctx) const;
|
||||
common::ObExprTypeCtx& type_ctx) const override;
|
||||
|
||||
virtual int calc_result3(common::ObObj& result, const common::ObObj& arg1, const common::ObObj& arg2,
|
||||
const common::ObObj& arg3, common::ObExprCtx& expr_ctx) const;
|
||||
const common::ObObj& arg3, common::ObExprCtx& expr_ctx) const override;
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& expr_cg_ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
|
||||
|
||||
@ -73,8 +73,8 @@ protected:
|
||||
public:
|
||||
explicit ObBasicNestedLoopJoin(common::ObIAllocator& alloc);
|
||||
virtual ~ObBasicNestedLoopJoin();
|
||||
virtual void reset();
|
||||
virtual void reuse();
|
||||
virtual void reset() override;
|
||||
virtual void reuse() override;
|
||||
int init_param_count(int64_t count)
|
||||
{
|
||||
return init_array_size<>(rescan_params_, count);
|
||||
@ -95,7 +95,7 @@ public:
|
||||
other_join_conds_, N_INNER_GET, is_inner_get_, N_SELF_JOIN, is_self_join_);
|
||||
|
||||
protected:
|
||||
int get_next_left_row(ObJoinCtx& join_ctx) const;
|
||||
int get_next_left_row(ObJoinCtx& join_ctx) const override;
|
||||
int prepare_rescan_params(ObBasicNestedLoopJoinCtx& join_ctx) const;
|
||||
inline bool use_batch_index_join(ObPhyOperatorType right_op_type) const
|
||||
{
|
||||
|
||||
@ -421,7 +421,7 @@ private:
|
||||
int next();
|
||||
int join_end_operate();
|
||||
int join_end_func_end();
|
||||
int get_next_left_row();
|
||||
int get_next_left_row() override;
|
||||
int reuse_for_next_chunk();
|
||||
int load_next_chunk();
|
||||
int build_hash_table_for_nest_loop(int64_t& num_left_rows);
|
||||
@ -448,7 +448,7 @@ private:
|
||||
int split_partition_and_build_hash_table(int64_t& num_left_rows);
|
||||
int recursive_process(bool& need_not_read_right);
|
||||
int adaptive_process(bool& need_not_read_right);
|
||||
int get_next_right_row();
|
||||
int get_next_right_row() override;
|
||||
int read_right_operate();
|
||||
int calc_hash_value(const ObIArray<ObExpr*>& join_keys, const ObIArray<ObHashFunc>& hash_funcs, uint64_t& hash_value);
|
||||
int calc_right_hash_value();
|
||||
|
||||
@ -100,9 +100,9 @@ private:
|
||||
public:
|
||||
explicit ObMergeJoin(common::ObIAllocator& alloc);
|
||||
virtual ~ObMergeJoin();
|
||||
virtual void reset();
|
||||
virtual void reuse();
|
||||
virtual int rescan(ObExecContext& exec_ctx) const;
|
||||
virtual void reset() override;
|
||||
virtual void reuse() override;
|
||||
virtual int rescan(ObExecContext& exec_ctx) const override;
|
||||
virtual int switch_iterator(ObExecContext& ctx) const override;
|
||||
inline void set_left_unique(const bool u)
|
||||
{
|
||||
@ -137,19 +137,19 @@ private:
|
||||
// state operation and transfer functions.
|
||||
typedef int (ObMergeJoin::*state_operation_func_type)(ObMergeJoinCtx& join_ctx) const;
|
||||
typedef int (ObMergeJoin::*state_function_func_type)(ObMergeJoinCtx& join_ctx, const common::ObNewRow*& row) const;
|
||||
virtual int inner_get_next_row(ObExecContext& exec_ctx, const common::ObNewRow*& row) const;
|
||||
virtual int inner_get_next_row(ObExecContext& exec_ctx, const common::ObNewRow*& row) const override;
|
||||
/**
|
||||
* @brief open operator, not including children operators.
|
||||
* called by open.
|
||||
* Every op should implement this method.
|
||||
*/
|
||||
virtual int inner_open(ObExecContext& exec_ctx) const;
|
||||
virtual int inner_open(ObExecContext& exec_ctx) const override;
|
||||
/**
|
||||
* @brief close operator, not including children operators.
|
||||
* Every op should implement this method.
|
||||
*/
|
||||
virtual int inner_close(ObExecContext& exec_ctx) const;
|
||||
virtual int inner_create_operator_ctx(ObExecContext& exec_ctx, ObPhyOperatorCtx*& op_ctx) const;
|
||||
virtual int inner_close(ObExecContext& exec_ctx) const override;
|
||||
virtual int inner_create_operator_ctx(ObExecContext& exec_ctx, ObPhyOperatorCtx*& op_ctx) const override;
|
||||
|
||||
private:
|
||||
// JS_JOIN_END state operation and transfer functions.
|
||||
|
||||
@ -61,8 +61,8 @@ private:
|
||||
public:
|
||||
explicit ObNestedLoopJoin(common::ObIAllocator& alloc);
|
||||
virtual ~ObNestedLoopJoin();
|
||||
virtual void reset();
|
||||
virtual void reuse();
|
||||
virtual void reset() override;
|
||||
virtual void reuse() override;
|
||||
virtual int rescan(ObExecContext& exec_ctx) const;
|
||||
virtual int switch_iterator(ObExecContext& ctx) const override;
|
||||
|
||||
@ -96,14 +96,14 @@ private:
|
||||
typedef int (ObNestedLoopJoin::*state_operation_func_type)(ObNestedLoopJoinCtx& join_ctx) const;
|
||||
typedef int (ObNestedLoopJoin::*state_function_func_type)(
|
||||
ObNestedLoopJoinCtx& join_ctx, const common::ObNewRow*& row) const;
|
||||
virtual int inner_get_next_row(ObExecContext& exec_ctx, const common::ObNewRow*& row) const;
|
||||
virtual int inner_get_next_row(ObExecContext& exec_ctx, const common::ObNewRow*& row) const override;
|
||||
/**
|
||||
* @brief open operator, not including children operators.
|
||||
* called by open.
|
||||
* Every op should implement this method.
|
||||
*/
|
||||
virtual int inner_open(ObExecContext& exec_ctx) const;
|
||||
virtual int inner_create_operator_ctx(ObExecContext& exec_ctx, ObPhyOperatorCtx*& op_ctx) const;
|
||||
virtual int inner_open(ObExecContext& exec_ctx) const override;
|
||||
virtual int inner_create_operator_ctx(ObExecContext& exec_ctx, ObPhyOperatorCtx*& op_ctx) const override;
|
||||
int prepare_rescan_params_for_group(ObNestedLoopJoinCtx& join_ctx) const;
|
||||
// JS_JOIN_END state operation and transfer functions.
|
||||
int join_end_operate(ObNestedLoopJoinCtx& join_ctx) const;
|
||||
@ -124,9 +124,8 @@ private:
|
||||
state_operation_func_type state_operation_func_[JS_STATE_COUNT];
|
||||
state_function_func_type state_function_func_[JS_STATE_COUNT][FT_TYPE_COUNT];
|
||||
// nested loop join with index seek, batch
|
||||
int batch_index_join_get_next(ObExecContext &exec_ctx,
|
||||
const common::ObNewRow *&row) const;
|
||||
int reset_rescan_params(ObExecContext &ctx) const;
|
||||
int batch_index_join_get_next(ObExecContext& exec_ctx, const common::ObNewRow*& row) const;
|
||||
int reset_rescan_params(ObExecContext& ctx) const;
|
||||
|
||||
private:
|
||||
int bij_fill_left_rows(ObExecContext& exec_ctx) const;
|
||||
|
||||
@ -132,10 +132,10 @@ protected:
|
||||
return partition_id_idx_;
|
||||
}
|
||||
virtual int do_transmit(ObExecContext& ctx) const = 0;
|
||||
int inner_open(ObExecContext& exec_ctx) const;
|
||||
int get_next_row(ObExecContext& ctx, const common::ObNewRow*& row) const;
|
||||
int inner_open(ObExecContext& exec_ctx) const override;
|
||||
int get_next_row(ObExecContext& ctx, const common::ObNewRow*& row) const override;
|
||||
int inner_get_next_row(ObExecContext& ctx, const common::ObNewRow*& row) const override;
|
||||
int inner_close(ObExecContext& exec_ctx) const;
|
||||
int inner_close(ObExecContext& exec_ctx) const override;
|
||||
static int link_ch_sets(
|
||||
ObPxTaskChSet& ch_set, common::ObIArray<dtl::ObDtlChannel*>& channels, dtl::ObDtlFlowControl* dfc = nullptr);
|
||||
int send_rows(ObExecContext& exec_ctx, ObPxTransmitCtx& transmit_ctx, ObSliceIdxCalc& slice_calc) const;
|
||||
|
||||
@ -163,7 +163,7 @@ public:
|
||||
virtual int inner_close(ObExecContext& ctx) const override;
|
||||
virtual int inner_create_operator_ctx(ObExecContext& ctx, ObPhyOperatorCtx*& op_ctx) const;
|
||||
virtual int inner_get_next_row(ObExecContext& exec_ctx, const common::ObNewRow*& row) const override;
|
||||
virtual int create_operator_input(ObExecContext& ctx) const;
|
||||
virtual int create_operator_input(ObExecContext& ctx) const override;
|
||||
virtual OperatorOpenOrder get_operator_open_order(ObExecContext& ctx) const override
|
||||
{
|
||||
UNUSED(ctx);
|
||||
|
||||
@ -26,9 +26,9 @@ public:
|
||||
explicit ObSubPlanFilter(common::ObIAllocator& alloc);
|
||||
virtual ~ObSubPlanFilter();
|
||||
|
||||
void reset();
|
||||
void reuse();
|
||||
int rescan(ObExecContext& ctx) const;
|
||||
void reset() override;
|
||||
void reuse() override;
|
||||
int rescan(ObExecContext& ctx) const override;
|
||||
|
||||
/**
|
||||
* @brief add rescan param to subplan filter
|
||||
@ -65,7 +65,7 @@ public:
|
||||
{
|
||||
return update_set_;
|
||||
}
|
||||
virtual int open(ObExecContext& ctx) const;
|
||||
virtual int open(ObExecContext& ctx) const override;
|
||||
virtual int switch_iterator(ObExecContext& ctx) const override;
|
||||
|
||||
private:
|
||||
@ -74,34 +74,34 @@ private:
|
||||
* @param ctx[in], execute context
|
||||
* @return if success, return OB_SUCCESS, otherwise, return errno
|
||||
*/
|
||||
virtual int init_op_ctx(ObExecContext& ctx) const;
|
||||
virtual int init_op_ctx(ObExecContext& ctx) const override;
|
||||
/**
|
||||
* @brief called by get_next_row(), get a row from the child operator or row_store
|
||||
* @param ctx[in], execute context
|
||||
* @param row[out], ObNewRow an obj array and row_size
|
||||
*/
|
||||
virtual int inner_get_next_row(ObExecContext& ctx, const common::ObNewRow*& row) const;
|
||||
virtual int inner_get_next_row(ObExecContext& ctx, const common::ObNewRow*& row) const override;
|
||||
/**
|
||||
* @brief open operator, not including children operators.
|
||||
* called by open.
|
||||
* Every op should implement this method.
|
||||
*/
|
||||
virtual int inner_open(ObExecContext& ctx) const;
|
||||
virtual int inner_open(ObExecContext& ctx) const override;
|
||||
/**
|
||||
* @brief close operator, not including children operators.
|
||||
* Every op should implement this method.
|
||||
*/
|
||||
virtual int inner_close(ObExecContext& ctx) const;
|
||||
virtual int inner_close(ObExecContext& ctx) const override;
|
||||
/**
|
||||
* @brief wrap the object of ObExprCtx, and reset calc_buf
|
||||
* @param exec_ctx[in], execute context
|
||||
* @param expr_ctx[out], sql expression calculate buffer context
|
||||
* @return if success, return OB_SUCCESS
|
||||
*/
|
||||
virtual int wrap_expr_ctx(ObExecContext& exec_ctx, common::ObExprCtx& expr_ctx) const;
|
||||
virtual int wrap_expr_ctx(ObExecContext& exec_ctx, common::ObExprCtx& expr_ctx) const override;
|
||||
int prepare_rescan_params(ObExecContext& ctx, const common::ObNewRow& row) const;
|
||||
int prepare_onetime_exprs(ObExecContext& ctx) const;
|
||||
virtual int64_t to_string_kv(char* buf, const int64_t buf_len) const;
|
||||
virtual int64_t to_string_kv(char* buf, const int64_t buf_len) const override;
|
||||
int handle_update_set(ObSubPlanFilterCtx* subplan_ctx, const common::ObNewRow*& row) const;
|
||||
int construct_array_params(ObExecContext& ctx) const;
|
||||
int reset_rescan_params(ObExecContext &ctx) const;
|
||||
|
||||
@ -40,8 +40,8 @@ public:
|
||||
virtual ~ObBlockSampleScan()
|
||||
{}
|
||||
|
||||
virtual int inner_get_next_row(ObExecContext& ctx, const common::ObNewRow*& row) const;
|
||||
virtual int init_op_ctx(ObExecContext& ctx) const;
|
||||
virtual int inner_get_next_row(ObExecContext& ctx, const common::ObNewRow*& row) const override;
|
||||
virtual int init_op_ctx(ObExecContext& ctx) const override;
|
||||
inline void set_sample_info(const common::SampleInfo& sample_info)
|
||||
{
|
||||
sample_info_ = sample_info;
|
||||
@ -54,7 +54,7 @@ public:
|
||||
{
|
||||
return sample_info_;
|
||||
}
|
||||
virtual int prepare_scan_param(ObExecContext& ctx) const;
|
||||
virtual int prepare_scan_param(ObExecContext& ctx) const override;
|
||||
OB_INLINE virtual bool need_filter_row() const override
|
||||
{
|
||||
return true;
|
||||
|
||||
@ -27,8 +27,8 @@ public:
|
||||
{}
|
||||
virtual ~ObMultiPartTableScanInput();
|
||||
virtual void reset() override;
|
||||
virtual int init(ObExecContext& ctx, ObTaskInfo& task_info, const ObPhyOperator& op);
|
||||
virtual ObPhyOperatorType get_phy_op_type() const
|
||||
virtual int init(ObExecContext& ctx, ObTaskInfo& task_info, const ObPhyOperator& op) override;
|
||||
virtual ObPhyOperatorType get_phy_op_type() const override
|
||||
{
|
||||
return PHY_MULTI_PART_TABLE_SCAN;
|
||||
};
|
||||
@ -68,15 +68,15 @@ private:
|
||||
public:
|
||||
explicit ObMultiPartTableScan(common::ObIAllocator& allocator);
|
||||
virtual ~ObMultiPartTableScan();
|
||||
virtual int rescan(ObExecContext& ctx) const;
|
||||
virtual int rescan(ObExecContext& ctx) const override;
|
||||
/**
|
||||
* @brief open operator, not including children operators.
|
||||
* called by open.
|
||||
* Every op should implement this method.
|
||||
*/
|
||||
virtual int inner_open(ObExecContext& ctx) const;
|
||||
virtual int inner_close(ObExecContext& ctx) const;
|
||||
virtual int inner_get_next_row(ObExecContext& ctx, const common::ObNewRow*& row) const;
|
||||
virtual int inner_open(ObExecContext& ctx) const override;
|
||||
virtual int inner_close(ObExecContext& ctx) const override;
|
||||
virtual int inner_get_next_row(ObExecContext& ctx, const common::ObNewRow*& row) const override;
|
||||
virtual int create_operator_input(ObExecContext& ctx) const override final;
|
||||
virtual int init_op_ctx(ObExecContext& ctx) const override final;
|
||||
void get_used_range_count(ObExecContext& ctx, int64_t& range_count) const;
|
||||
|
||||
@ -33,8 +33,8 @@ public:
|
||||
multi_row_store_.reset();
|
||||
// deserialize_allocator_ cannot be reset because it is only set once when creating operator input
|
||||
}
|
||||
virtual int init(ObExecContext& ctx, ObTaskInfo& task_info, const ObPhyOperator& op);
|
||||
virtual ObPhyOperatorType get_phy_op_type() const
|
||||
virtual int init(ObExecContext& ctx, ObTaskInfo& task_info, const ObPhyOperator& op) override;
|
||||
virtual ObPhyOperatorType get_phy_op_type() const override
|
||||
{
|
||||
return PHY_TABLE_ROW_STORE;
|
||||
}
|
||||
@ -42,7 +42,7 @@ public:
|
||||
* @brief set allocator which is used for deserialize, but not all objects will use allocator
|
||||
* while deserializing, so you can override it if you need.
|
||||
*/
|
||||
virtual void set_deserialize_allocator(common::ObIAllocator* allocator);
|
||||
virtual void set_deserialize_allocator(common::ObIAllocator* allocator) override;
|
||||
|
||||
private:
|
||||
common::ObFixedArray<common::ObRowStore*, common::ObIAllocator> multi_row_store_;
|
||||
|
||||
@ -41,7 +41,7 @@ public:
|
||||
* @brief set allocator which is used for deserialize, but not all objects will use allocator
|
||||
* while deserializing, so you can override it if you need.
|
||||
*/
|
||||
virtual void set_deserialize_allocator(common::ObIAllocator* allocator);
|
||||
virtual void set_deserialize_allocator(common::ObIAllocator* allocator) override;
|
||||
|
||||
private:
|
||||
// One partition corresponds to one row store
|
||||
|
||||
@ -22,7 +22,7 @@ public:
|
||||
ObDistributedJobControl();
|
||||
virtual ~ObDistributedJobControl();
|
||||
|
||||
virtual int get_ready_jobs(common::ObIArray<ObJob*>& jobs, bool serial_sched = false) const;
|
||||
virtual int get_ready_jobs(common::ObIArray<ObJob*>& jobs, bool serial_sched = false) const override;
|
||||
virtual int sort_job_scan_part_locs(ObExecContext& ctx) override;
|
||||
virtual int init_job_finish_queue(ObExecContext& ctx) override;
|
||||
int get_root_job(ObJob*& root_job) const;
|
||||
|
||||
@ -108,15 +108,15 @@ public:
|
||||
{}
|
||||
virtual ~ObRpcRemoteExecuteP()
|
||||
{}
|
||||
virtual int init();
|
||||
virtual int init() override;
|
||||
|
||||
protected:
|
||||
virtual int send_result_to_controller(ObExecContext& exec_ctx, const ObPhysicalPlan& plan) override;
|
||||
virtual int before_process();
|
||||
virtual int process();
|
||||
virtual int before_response();
|
||||
virtual int after_process();
|
||||
virtual void cleanup();
|
||||
virtual int before_process() override;
|
||||
virtual int process() override;
|
||||
virtual int before_response() override;
|
||||
virtual int after_process() override;
|
||||
virtual void cleanup() override;
|
||||
virtual void clean_result_buffer() override;
|
||||
|
||||
private:
|
||||
@ -133,15 +133,15 @@ public:
|
||||
{}
|
||||
virtual ~ObRpcRemoteSyncExecuteP()
|
||||
{}
|
||||
virtual int init();
|
||||
virtual int init() override;
|
||||
|
||||
protected:
|
||||
virtual int send_result_to_controller(ObExecContext& exec_ctx, const ObPhysicalPlan& plan) override;
|
||||
virtual int before_process();
|
||||
virtual int process();
|
||||
virtual int before_response();
|
||||
virtual int after_process();
|
||||
virtual void cleanup();
|
||||
virtual int before_process() override;
|
||||
virtual int process() override;
|
||||
virtual int before_response() override;
|
||||
virtual int after_process() override;
|
||||
virtual void cleanup() override;
|
||||
virtual void clean_result_buffer() override;
|
||||
};
|
||||
|
||||
@ -153,16 +153,16 @@ public:
|
||||
{}
|
||||
virtual ~ObRpcRemoteASyncExecuteP()
|
||||
{}
|
||||
virtual int init();
|
||||
virtual int init() override;
|
||||
ObRemoteTask& get_arg()
|
||||
{
|
||||
return arg_;
|
||||
}
|
||||
virtual int before_process();
|
||||
virtual int process();
|
||||
virtual int before_response();
|
||||
virtual int after_process();
|
||||
virtual void cleanup();
|
||||
virtual int before_process() override;
|
||||
virtual int process() override;
|
||||
virtual int before_response() override;
|
||||
virtual int after_process() override;
|
||||
virtual void cleanup() override;
|
||||
void set_from_batch()
|
||||
{
|
||||
is_from_batch_ = true;
|
||||
|
||||
@ -88,7 +88,7 @@ public:
|
||||
{}
|
||||
virtual ~ObAllToOneSliceIdxCalc() = default;
|
||||
virtual int get_slice_idx(const common::ObNewRow& row, int64_t& slice_idx) override;
|
||||
virtual int get_slice_idx(const ObIArray<ObExpr*>& exprs, ObEvalCtx& eval_ctx, int64_t& slice_idx);
|
||||
virtual int get_slice_idx(const ObIArray<ObExpr*>& exprs, ObEvalCtx& eval_ctx, int64_t& slice_idx) override;
|
||||
|
||||
protected:
|
||||
};
|
||||
@ -135,7 +135,8 @@ public:
|
||||
typedef common::hash::ObHashMap<int64_t, int64_t, common::hash::NoPthreadDefendMode> PartId2ArrayIdxMap;
|
||||
typedef common::hash::ObHashMap<int64_t, int64_t, common::hash::NoPthreadDefendMode> SubPartId2ArrayIdxMap;
|
||||
|
||||
virtual ~ObRepartSliceIdxCalc() {}
|
||||
virtual ~ObRepartSliceIdxCalc()
|
||||
{}
|
||||
virtual int get_slice_idx(const common::ObNewRow& row, int64_t& slice_idx) override;
|
||||
|
||||
virtual int get_slice_idx(const ObIArray<ObExpr*>& exprs, ObEvalCtx& eval_ctx, int64_t& slice_idx) override;
|
||||
@ -314,7 +315,8 @@ public:
|
||||
{}
|
||||
|
||||
virtual int get_slice_indexes(const common::ObNewRow& row, SliceIdxArray& slice_idx_array) override;
|
||||
virtual int get_slice_indexes(const ObIArray<ObExpr*>& exprs, ObEvalCtx& eval_ctx, SliceIdxArray& slice_idx_array);
|
||||
virtual int get_slice_indexes(
|
||||
const ObIArray<ObExpr*>& exprs, ObEvalCtx& eval_ctx, SliceIdxArray& slice_idx_array) override;
|
||||
|
||||
private:
|
||||
const ChannelIdxArray& channel_idx_;
|
||||
@ -342,7 +344,8 @@ public:
|
||||
{}
|
||||
|
||||
virtual int get_slice_indexes(const common::ObNewRow& row, SliceIdxArray& slice_idx_array) override;
|
||||
virtual int get_slice_indexes(const ObIArray<ObExpr*>& exprs, ObEvalCtx& eval_ctx, SliceIdxArray& slice_idx_array);
|
||||
virtual int get_slice_indexes(
|
||||
const ObIArray<ObExpr*>& exprs, ObEvalCtx& eval_ctx, SliceIdxArray& slice_idx_array) override;
|
||||
|
||||
private:
|
||||
uint64_t slice_cnt_;
|
||||
@ -379,7 +382,7 @@ public:
|
||||
int calc_hash_value(const ObObj& obj, const ObObjType type, const ObCollationType cs_type, uint64_t& hash_val);
|
||||
int calc_hash_value(ObEvalCtx& eval_ctx, uint64_t& hash_val);
|
||||
int get_multi_hash_value(const ObNewRow& row, uint64_t& hash_val);
|
||||
virtual int get_slice_idx(const ObNewRow& row, int64_t& slice_idx);
|
||||
virtual int get_slice_idx(const ObNewRow& row, int64_t& slice_idx) override;
|
||||
int get_slice_idx(const ObIArray<ObExpr*>& row, ObEvalCtx& eval_ctx, int64_t& slice_idx) override;
|
||||
|
||||
common::ObExprCtx* expr_ctx_;
|
||||
|
||||
@ -246,7 +246,7 @@ protected:
|
||||
int calculate_table_location(uint64_t loc_table_id, uint64_t ref_table_id, const ObPartHint* part_hint,
|
||||
ObTablePartitionInfo& table_partition_info);
|
||||
int alloc_partition_id_expr(ObAllocExprContext& ctx);
|
||||
virtual int allocate_expr_post(ObAllocExprContext &ctx);
|
||||
virtual int allocate_expr_post(ObAllocExprContext &ctx) override;
|
||||
int alloc_shadow_pk_column_for_gui(ObAllocExprContext& ctx);
|
||||
virtual int need_multi_table_dml(AllocExchContext& ctx, ObShardingInfo& sharding_info, bool& is_needed);
|
||||
int check_multi_table_dml_for_px(AllocExchContext& ctx, ObShardingInfo* source_sharding,
|
||||
|
||||
@ -88,8 +88,8 @@ public:
|
||||
return has_union_child_;
|
||||
}
|
||||
virtual int est_cost() override;
|
||||
virtual int allocate_granule_pre(AllocGIContext &ctx);
|
||||
virtual int allocate_granule_post(AllocGIContext &ctx);
|
||||
virtual int allocate_granule_pre(AllocGIContext &ctx) override;
|
||||
virtual int allocate_granule_post(AllocGIContext &ctx) override;
|
||||
virtual int allocate_exchange_post(AllocExchContext* ctx) override;
|
||||
virtual int transmit_op_ordering() override;
|
||||
virtual int re_est_cost(const ObLogicalOperator* parent, double need_row_count, bool& re_est) override;
|
||||
|
||||
@ -23,7 +23,7 @@ public:
|
||||
ObOptimizerPartitionLocationCache(common::ObIAllocator& allocator, share::ObIPartitionLocationCache* location_cache);
|
||||
virtual ~ObOptimizerPartitionLocationCache();
|
||||
|
||||
virtual PartitionLocationCacheType get_type() const
|
||||
virtual PartitionLocationCacheType get_type() const override
|
||||
{
|
||||
return ObOptimizerPartitionLocationCache::PART_LOC_CACHE_TYPE_OPTIMIZER;
|
||||
}
|
||||
@ -69,7 +69,7 @@ public:
|
||||
virtual int nonblock_renew_with_limiter(
|
||||
const common::ObPartitionKey& partition, const int64_t expire_renew_time, bool& is_limited) override;
|
||||
// link table.
|
||||
virtual int get_link_table_location(const uint64_t table_id, share::ObPartitionLocation& location);
|
||||
virtual int get_link_table_location(const uint64_t table_id, share::ObPartitionLocation& location) override;
|
||||
inline share::ObIPartitionLocationCache* get_location_cache()
|
||||
{
|
||||
return location_cache_;
|
||||
|
||||
@ -32,7 +32,7 @@ public:
|
||||
int add_table_item(const obrpc::ObTableItem& table_item);
|
||||
void set_tablegroup_name(const common::ObString& tablegroup_name);
|
||||
obrpc::ObAlterTablegroupArg& get_alter_tablegroup_arg();
|
||||
virtual obrpc::ObDDLArg& get_ddl_arg()
|
||||
virtual obrpc::ObDDLArg& get_ddl_arg() override
|
||||
{
|
||||
return alter_tablegroup_arg_;
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ public:
|
||||
explicit ObCreateTableResolver(ObResolverParams& params);
|
||||
virtual ~ObCreateTableResolver();
|
||||
|
||||
virtual int resolve(const ParseNode& parse_tree);
|
||||
virtual int resolve(const ParseNode& parse_tree) override;
|
||||
|
||||
private:
|
||||
enum ResolveRule { RESOLVE_ALL = 0, RESOLVE_COL_ONLY, RESOLVE_NON_COL };
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user