HappenLee commented on code in PR #17456:
URL: https://github.com/apache/doris/pull/17456#discussion_r1128929456


##########
be/src/vec/functions/function_bitmap_variadic.cpp:
##########
@@ -113,13 +197,27 @@ class FunctionBitMapVariadic : public IFunction {
                 std::conditional_t<is_complex_v<ResultType>, 
ColumnComplexType<ResultType>,
                                    ColumnVector<ResultType>>;
         typename ColVecResult::MutablePtr col_res = nullptr;
+
+        typename ColumnUInt8::MutablePtr col_res_nulls;
+        auto& result_info = block.get_by_position(result);
+        // special case for bitmap_or and bitmap_or_count
+        if (!use_default_implementation_for_nulls() && 
result_info.type->is_nullable()) {
+            col_res_nulls = ColumnUInt8::create(input_rows_count);

Review Comment:
   ```col_res_nulls = ColumnUInt8::create(input_rows_count, false);```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to