[FEAT MERGE]support ddl real time monitoring

This commit is contained in:
Charles0429
2022-12-30 13:18:48 +00:00
committed by ob-robot
parent 5535b96376
commit 2c8c28887f
57 changed files with 1950 additions and 549 deletions

View File

@ -279,7 +279,7 @@ int ObAggregateProcessor::ExtraResult::init_distinct_set(const uint64_t tenant_i
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("fall to alloc buff", "size", sizeof(ObUniqueSortImpl), K(ret));
} else {
new (unique_sort_op_) ObUniqueSortImpl();
new (unique_sort_op_) ObUniqueSortImpl(op_monitor_info_);
if (OB_FAIL(unique_sort_op_->init(tenant_id,
&aggr_info.distinct_collations_,
&aggr_info.distinct_cmp_funcs_,
@ -320,7 +320,7 @@ int ObAggregateProcessor::GroupConcatExtraResult::init(const uint64_t tenant_id,
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("fall to alloc buff", "size", sizeof(ObSortOpImpl), K(ret));
} else {
new (sort_op_) ObSortOpImpl();
new (sort_op_) ObSortOpImpl(op_monitor_info_);
if (OB_FAIL(sort_op_->init(tenant_id,
&aggr_info.sort_collations_,
&aggr_info.sort_cmp_funcs_,

View File

@ -271,6 +271,7 @@ public:
DECLARE_VIRTUAL_TO_STRING;
protected:
common::ObIAllocator &alloc_;
ObMonitorNode op_monitor_info_;
public:
// for distinct calculate may be replace by hash based distinct in the future.
ObUniqueSortImpl *unique_sort_op_;

View File

@ -99,7 +99,7 @@ public:
is_first_calc_(true),
cur_group_last_row_idx_(-1),
use_sort_data_(false),
inner_sort_(),
inner_sort_(op_monitor_info_),
rollup_hash_vals_(nullptr),
ndv_calculator_(nullptr),
global_rollup_key_(),