Support bitmap_empty function (#2227)
This commit is contained in:
@ -52,6 +52,15 @@ private:
|
||||
FunctionContext* ctx;
|
||||
};
|
||||
|
||||
TEST_F(BitmapFunctionsTest, bitmap_empty) {
|
||||
StringVal result = BitmapFunctions::bitmap_empty(ctx);
|
||||
|
||||
RoaringBitmap bitmap;
|
||||
StringVal expected = convert_bitmap_to_string(ctx, bitmap);
|
||||
|
||||
ASSERT_EQ(expected, result);
|
||||
}
|
||||
|
||||
TEST_F(BitmapFunctionsTest, to_bitmap) {
|
||||
StringVal input = AnyValUtil::from_string_temp(ctx, std::string("1024"));
|
||||
StringVal result = BitmapFunctions::to_bitmap(ctx, input);
|
||||
|
||||
Reference in New Issue
Block a user