[cherry-pick](branch-21) fix collect_set function core dump without arena pool (#38234) (#38307)

## Proposed changes

cherry-pick from master #38234

<!--Describe your changes.-->
This commit is contained in:
zhangstar333
2024-07-25 12:05:52 +08:00
committed by GitHub
parent c23228e331
commit 57864e8554
4 changed files with 15 additions and 4 deletions

View File

@ -691,7 +691,8 @@ void VAnalyticEvalNode::_execute_for_win_func(int64_t partition_start, int64_t p
}
_agg_functions[i]->function()->add_range_single_place(
partition_start, partition_end, frame_start, frame_end,
_fn_place_ptr + _offsets_of_aggregate_states[i], _agg_columns.data(), nullptr);
_fn_place_ptr + _offsets_of_aggregate_states[i], _agg_columns.data(),
_agg_arena_pool.get());
}
// If the end is not greater than the start, the current window should be empty.