[fix](bitmap) fix wrong result of bitmap count functions for null values (#17849)
bitmap count functions result is null when there are null values, which is not right:
This commit is contained in:
@ -97,13 +97,6 @@ ColumnPtr wrap_in_nullable(const ColumnPtr& src, const Block& block, const Colum
|
||||
result_null_map_column);
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
struct NullPresence {
|
||||
bool has_nullable = false;
|
||||
bool has_null_constant = false;
|
||||
};
|
||||
|
||||
NullPresence get_null_presence(const Block& block, const ColumnNumbers& args) {
|
||||
NullPresence res;
|
||||
|
||||
@ -136,7 +129,6 @@ bool all_arguments_are_constant(const Block& block, const ColumnNumbers& args) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
inline Status PreparedFunctionImpl::_execute_skipped_constant_deal(
|
||||
FunctionContext* context, Block& block, const ColumnNumbers& args, size_t result,
|
||||
|
||||
Reference in New Issue
Block a user