This is an automated email from the ASF dual-hosted git repository. caiconghui pushed a commit to branch bugfix_bitmap in repository https://gitbox.apache.org/repos/asf/doris.git
commit ac7655bea7dae6ee359331f011087396c4f5d7ab Author: caiconghui1 <[email protected]> AuthorDate: Tue Mar 25 16:58:32 2025 +0800 fix(core): fix be core due to explode bitmap size exceed INT_MAX --- be/src/vec/exprs/table_function/vexplode_bitmap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/be/src/vec/exprs/table_function/vexplode_bitmap.cpp b/be/src/vec/exprs/table_function/vexplode_bitmap.cpp index 1129940c7ea..a7de7690e0f 100644 --- a/be/src/vec/exprs/table_function/vexplode_bitmap.cpp +++ b/be/src/vec/exprs/table_function/vexplode_bitmap.cpp @@ -107,7 +107,8 @@ void VExplodeBitmapTableFunction::process_close() { } int VExplodeBitmapTableFunction::get_value(MutableColumnPtr& column, int max_step) { - max_step = std::min(max_step, (int)(_cur_size - _cur_offset)); + max_step = std::min(static_cast<int64_t>(max_step), (_cur_size - _cur_offset)); + assert(max_step >= 0); // should dispose the empty status, forward one step if (current_empty()) { column->insert_default(); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
