[FEAT MERGE] 4.2 add trans_debug_info for 4377

Co-authored-by: Handora <qcdsr970209@gmail.com>
This commit is contained in:
yishenglanlingzui
2023-05-06 06:08:35 +00:00
committed by ob-robot
parent 711f4d5cd0
commit 9e328378c8
63 changed files with 1013 additions and 169 deletions

View File

@ -76,6 +76,7 @@ public:
tablet_id_expr_(NULL),
tablet_id_type_(0),
calc_part_id_expr_(NULL),
trans_info_expr_(NULL),
global_index_back_table_partition_info_(NULL),
has_index_scan_filter_(false),
has_index_lookup_filter_(false),
@ -419,7 +420,9 @@ public:
void set_access_path(AccessPath* path) { access_path_ = path; }
inline const AccessPath* get_access_path() const { return access_path_; }
void set_tablet_id_expr(ObOpPseudoColumnRawExpr *expr) { tablet_id_expr_ = expr; }
void set_trans_info_expr(ObOpPseudoColumnRawExpr *expr) { trans_info_expr_ = expr; }
ObOpPseudoColumnRawExpr *get_tablet_id_expr() const { return tablet_id_expr_; }
ObRawExpr *get_trans_info_expr() const { return trans_info_expr_; }
void set_tablet_id_type(int64_t type) { tablet_id_type_ = type; }
int64_t get_tablet_id_type() const { return tablet_id_type_; }
const common::ObIArray<ObRawExpr*> &get_rowkey_exprs() const { return rowkey_exprs_; }
@ -467,6 +470,7 @@ private: // member functions
int generate_necessary_rowkey_and_partkey_exprs();
int add_mapping_columns_for_vt(ObIArray<ObRawExpr*> &access_exprs);
int get_mbr_column_exprs(const uint64_t table_id, ObIArray<ObRawExpr *> &mbr_exprs);
int allocate_lookup_trans_info_expr();
protected: // memeber variables
// basic info
uint64_t table_id_; //table id or alias table id
@ -564,6 +568,7 @@ protected: // memeber variables
// 0 for tablet id, 1 for logical part id, 2 for logical subpart id
int64_t tablet_id_type_;
ObRawExpr *calc_part_id_expr_;
ObRawExpr *trans_info_expr_;
// begin for global index lookup
ObTablePartitionInfo *global_index_back_table_partition_info_;