patch 4.0

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

View File

@ -0,0 +1,45 @@
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PubL v2 for more details.
*/
#ifndef _OB_LOG_ERR_LOG_H
#define _OB_LOG_ERR_LOG_H
#include "sql/optimizer/ob_logical_operator.h"
#include "sql/optimizer/ob_log_del_upd.h"
#include "sql/optimizer/ob_log_operator_factory.h"
namespace oceanbase
{
namespace sql
{
class ObLogErrLog : public ObLogicalOperator
{
public:
ObLogErrLog(ObLogPlan &plan);
virtual ~ObLogErrLog() {}
virtual const char *get_name() const;
virtual int est_cost() override;
virtual int print_my_plan_annotation(char *buf, int64_t &buf_len, int64_t &pos, ExplainType type);
virtual uint64_t hash(uint64_t seed) const override;
int extract_err_log_info();
ObErrLogDefine &get_err_log_define() { return err_log_define_; }
const ObErrLogDefine &get_err_log_define() const { return err_log_define_; }
void set_del_upd_stmt(const ObDelUpdStmt *del_upd_stmt) { del_upd_stmt_ = del_upd_stmt; }
const ObDelUpdStmt *get_del_upd_stmt() const { return del_upd_stmt_; }
int get_err_log_type(stmt::StmtType &type);
virtual int get_op_exprs(ObIArray<ObRawExpr*> &all_exprs) override;
private:
ObErrLogDefine err_log_define_;
const ObDelUpdStmt *del_upd_stmt_;
DISALLOW_COPY_AND_ASSIGN(ObLogErrLog);
};
} // end of namespace sql
} // end of namespace oceanbase
#endif // _OB_LOG_ERR_LOG_H