jacktengg commented on code in PR #69304:
URL: https://github.com/apache/doris/pull/69304#discussion_r4668072662


##########
be/src/exprs/aggregate/aggregate_function_null_v2.h:
##########
@@ -115,21 +183,36 @@ class AggregateFunctionNullBaseInlineV2 : public 
IAggregateFunctionHelper<Derive
             } else {
                 prefix_size = nested_function->align_of_data();
             }
+        } else if constexpr (needs_empty_input_state_marker) {
+            // BITMAP_INTERSECT returns a non-NULL empty bitmap for no input, 
but its
+            // empty partial must still be distinguishable from an actual 
empty bitmap.
+            prefix_size = nested_function->align_of_data();
         } else {
             prefix_size = 0;
         }
+        // The serialized type is queried by non-pipeline callers too 
(AGG_STATE and UT).
+        // Initialize this wrapper from its creator's negotiated version 
immediately.
+        AggregateFunctionNullBaseInlineV2::set_version(be_exec_version);
+    }
+
+    bool needs_nullable_serialized_column() const {
+        // Ordinary non-nullable results use the nested empty state for NULL 
input.

Review Comment:
   This is a known bug of bitmap_intersect, it's fixed in this pr with 
version-20, add marker/null-map support for version 19 will have problem duing 
rollup update process.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to