[Bugfix](bitmap) Fix to_bitmap_with_check function symbol is incorrect (#13667)

* [Bugfix](bitmap) Fix to_bitmap_with_check function symbol is incorrect
This commit is contained in:
Zhengguo Yang
2022-10-26 14:27:38 +08:00
committed by GitHub
parent 3548d0b824
commit 65aa863dcf
3 changed files with 5 additions and 3 deletions

View File

@ -190,7 +190,7 @@ StringVal BitmapFunctions::to_bitmap_with_check(doris_udf::FunctionContext* ctx,
"18446744073709551615 currently, cannot load negative values to column with"
" to_bitmap MV on it.";
ctx->set_error(ss.str().c_str());
return StringVal::null();
return serialize(ctx, nullptr);
}
}

View File

@ -197,7 +197,9 @@ Status VUnionNode::get_next_const(RuntimeState* state, Block* block) {
&result_list[i]));
}
tmp_block.erase_not_in(result_list);
mblock.merge(tmp_block);
if (tmp_block.rows() > 0) {
mblock.merge(tmp_block);
}
}
if (!mem_reuse) {

View File

@ -2478,7 +2478,7 @@ visible_functions = [
'_ZN5doris15BitmapFunctions9to_bitmapEPN9doris_udf15FunctionContextERKNS1_9StringValE',
'', '', 'vec', 'ALWAYS_NOT_NULLABLE'],
[['to_bitmap_with_check'], 'BITMAP', ['STRING'],
'_ZN5doris15BitmapFunctions9to_bitmapEPN9doris_udf15FunctionContextERKNS1_9StringValE',
'_ZN5doris15BitmapFunctions20to_bitmap_with_checkEPN9doris_udf15FunctionContextERKNS1_9StringValE',
'', '', 'vec', 'ALWAYS_NOT_NULLABLE'],
[['bitmap_hash'], 'BITMAP', ['STRING'],
'_ZN5doris15BitmapFunctions11bitmap_hash64EPN9doris_udf15FunctionContextERKNS1_9StringValE',