fix merge set op last_store_row dynamic leak

This commit is contained in:
obdev
2023-05-08 04:08:29 +00:00
committed by ob-robot
parent c8b3ff602c
commit 8331f2f878
10 changed files with 17 additions and 19 deletions

View File

@ -1221,7 +1221,7 @@ int ObWindowFunctionOp::init()
} else if (OB_FAIL(aggr_infos->push_back(wf_info.aggr_info_))) {
LOG_WARN("failed to push_back", K(wf_info.aggr_info_), K(ret));
} else {
AggrCell *aggr_func = new (tmp_ptr) AggrCell(wf_info, *this, *aggr_infos);
AggrCell *aggr_func = new (tmp_ptr) AggrCell(wf_info, *this, *aggr_infos, tenant_id);
aggr_func->aggr_processor_.set_in_window_func();
if (OB_FAIL(aggr_func->aggr_processor_.init())) {
LOG_WARN("failed to initialize init_group_rows", K(ret));

View File

@ -557,10 +557,10 @@ public:
class AggrCell : public WinFuncCell
{
public:
AggrCell(WinFuncInfo &wf_info, ObWindowFunctionOp &op, ObIArray<ObAggrInfo> &aggr_infos)
AggrCell(WinFuncInfo &wf_info, ObWindowFunctionOp &op, ObIArray<ObAggrInfo> &aggr_infos, const int64_t tenant_id)
: WinFuncCell(wf_info, op),
finish_prepared_(false),
aggr_processor_(op_.eval_ctx_, aggr_infos, "WindowAggProc", op.get_monitor_info()),
aggr_processor_(op_.eval_ctx_, aggr_infos, "WindowAggProc", op.get_monitor_info(), tenant_id),
result_(),
got_result_(false),
remove_type_(wf_info.remove_type_)