You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/10/19 04:18:39 UTC
[doris] branch branch-1.1-lts updated: [fix](bitmap_intersect) fix bitmap_intersect result error (#13459)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
new 115fb0191e [fix](bitmap_intersect) fix bitmap_intersect result error (#13459)
115fb0191e is described below
commit 115fb0191e534161f30574a3ef7a5b49c69664a7
Author: luozenglin <37...@users.noreply.github.com>
AuthorDate: Wed Oct 19 12:18:32 2022 +0800
[fix](bitmap_intersect) fix bitmap_intersect result error (#13459)
cherry-pick from #13298
---
be/src/exprs/bitmap_function.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/exprs/bitmap_function.cpp b/be/src/exprs/bitmap_function.cpp
index 4fa1383eec..79e514bf6d 100644
--- a/be/src/exprs/bitmap_function.cpp
+++ b/be/src/exprs/bitmap_function.cpp
@@ -104,7 +104,8 @@ void BitmapFunctions::bitmap_intersect(FunctionContext* ctx, const StringVal& sr
if (UNLIKELY(dst->ptr == nullptr)) {
dst->is_null = false;
dst->len = sizeof(BitmapValue);
- dst->ptr = (uint8_t*)new BitmapValue((char*)src.ptr);
+ dst->ptr = (uint8_t*)new BitmapValue();
+ BitmapFunctions::bitmap_union(ctx, src, dst);
return;
}
auto dst_bitmap = reinterpret_cast<BitmapValue*>(dst->ptr);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org