[bug](function) fix explode_number function return wrong rows (#23603)

before the explode_number function result is random with const value.
because the _cur_size is reset, so it's can't insert values to column.
This commit is contained in:
zhangstar333
2023-08-29 19:02:49 +08:00
committed by GitHub
parent f17241386e
commit 94a8fa6bc9
15 changed files with 276 additions and 20 deletions

View File

@ -36,7 +36,7 @@ VExplodeTableFunction::VExplodeTableFunction() {
_fn_name = "vexplode";
}
Status VExplodeTableFunction::process_init(Block* block) {
Status VExplodeTableFunction::process_init(Block* block, RuntimeState* state) {
CHECK(_expr_context->root()->children().size() == 1)
<< "VExplodeTableFunction only support 1 child but has "
<< _expr_context->root()->children().size();