diff --git a/be/src/vec/exec/vtable_function_node.h b/be/src/vec/exec/vtable_function_node.h index db88147cf44bde..ec1df6c41dd006 100644 --- a/be/src/vec/exec/vtable_function_node.h +++ b/be/src/vec/exec/vtable_function_node.h @@ -54,8 +54,9 @@ class VTableFunctionNode final : public ExecNode { Status init(const TPlanNode& tnode, RuntimeState* state = nullptr) override; Status prepare(RuntimeState* state) override; - Status open(RuntimeState* state) override { - RETURN_IF_ERROR(alloc_resource(state)); + Status open(RuntimeState* state) override { return alloc_resource(state); } + Status alloc_resource(RuntimeState* state) override { + RETURN_IF_ERROR(ExecNode::alloc_resource(state)); RETURN_IF_ERROR(VExpr::open(_vfn_ctxs, state)); return _children[0]->open(state); }