[Enhancement](function) add to_bitmap() function with int type (#13973)

to_bitmap function only support string param only,add to_bitmap() function with int type, this can avoid convert int type to string and then convert string to int
This commit is contained in:
Zhengguo Yang
2022-11-08 09:15:26 +08:00
committed by GitHub
parent 34f43ac781
commit e1654bc6ef
6 changed files with 276 additions and 152 deletions

View File

@ -69,6 +69,8 @@ public:
static StringVal bitmap_serialize(FunctionContext* ctx, const StringVal& src);
static StringVal to_bitmap(FunctionContext* ctx, const StringVal& src);
static StringVal to_bitmap_with_check(FunctionContext* ctx, const StringVal& src);
static StringVal to_bitmap(FunctionContext* ctx, const BigIntVal& src);
static StringVal to_bitmap_with_check(FunctionContext* ctx, const BigIntVal& src);
static StringVal bitmap_hash(FunctionContext* ctx, const StringVal& src);
static StringVal bitmap_hash64(FunctionContext* ctx, const StringVal& src);
static StringVal bitmap_or(FunctionContext* ctx, const StringVal& src, const StringVal& dst);