[bug](explode) fix table node not implement alloc_resource function (#24031)

fix table node not implement alloc_resource function
This commit is contained in:
zhangstar333
2023-09-09 08:25:28 +08:00
committed by GitHub
parent 698fe55662
commit 03757d0672

View File

@ -56,9 +56,12 @@ public:
Status prepare(RuntimeState* state) override;
Status open(RuntimeState* state) override {
RETURN_IF_ERROR(alloc_resource(state));
RETURN_IF_ERROR(VExpr::open(_vfn_ctxs, state));
return _children[0]->open(state);
}
Status alloc_resource(RuntimeState* state) override {
RETURN_IF_ERROR(ExecNode::alloc_resource(state));
return VExpr::open(_vfn_ctxs, state);
}
Status get_next(RuntimeState* state, Block* block, bool* eos) override;
bool need_more_input_data() const { return !_child_block.rows() && !_child_eos; }