[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:
TengJianPing
2023-03-19 11:49:58 +08:00
committed by GitHub
parent 14dcdd188e
commit dfa2528b5e
11 changed files with 859 additions and 582 deletions

View File

@ -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,