[function](bitmap) support bitmap_remove (#24190)

This commit is contained in:
TengJianPing
2023-09-12 14:52:04 +08:00
committed by GitHub
parent 9e0d843501
commit 4bb9a12038
10 changed files with 468 additions and 0 deletions

View File

@ -82,6 +82,23 @@ TEST(function_bitmap_test, function_bitmap_to_string_test) {
check_function<DataTypeString, true>(func_name, input_types, data_set);
}
TEST(function_bitmap_test, function_bitmap_remove) {
std::string func_name = "bitmap_remove";
InputTypeSet input_types = {TypeIndex::BitMap, TypeIndex::Int64};
BitmapValue bitmap1({1, 3});
BitmapValue bitmap2({1, 3, 5});
BitmapValue bitmap1_res(1);
BitmapValue bitmap2_res({1, 3, 5});
{
DataSet data_set = {{{&bitmap1, (int64_t)3}, bitmap1_res},
{{&bitmap2, (int64_t)6}, bitmap2_res},
{{&bitmap1, Null()}, Null()}};
check_function<DataTypeBitMap, true>(func_name, input_types, data_set);
}
}
namespace doris {
namespace config {
DECLARE_Bool(enable_set_in_bitmap_value);