morningman commented on a change in pull request #8733:
URL: https://github.com/apache/incubator-doris/pull/8733#discussion_r837337104
##########
File path: be/src/exprs/expr_context.cpp
##########
@@ -116,7 +116,8 @@ Status ExprContext::clone(RuntimeState* state,
ExprContext** new_ctx) {
for (int i = 0; i < _fn_contexts.size(); ++i) {
(*new_ctx)->_fn_contexts.push_back(_fn_contexts[i]->impl()->clone((*new_ctx)->_pool.get()));
}
- (*new_ctx)->_fn_contexts_ptr = &((*new_ctx)->_fn_contexts[0]);
+ (*new_ctx)->_fn_contexts_ptr = (*new_ctx)->_fn_contexts.size() == 0 ?
Review comment:
Looks like no where to use this `_fn_contexts_ptr`. Can be deleted?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]