luozenglin commented on a change in pull request #6918:
URL: https://github.com/apache/incubator-doris/pull/6918#discussion_r738937055



##########
File path: be/src/exprs/bitmap_function.cpp
##########
@@ -597,6 +597,24 @@ BooleanVal 
BitmapFunctions::bitmap_has_any(FunctionContext* ctx, const StringVal
     return {bitmap.cardinality() != 0};
 }
 
+BooleanVal BitmapFunctions::bitmap_has_all(FunctionContext *ctx, const 
StringVal &lhs,
+                                           const StringVal &rhs) {
+    if (lhs.is_null || rhs.is_null) {
+        return BooleanVal::null();
+    }
+
+    if (lhs.len != 0 && rhs.len != 0) {
+        BitmapValue bitmap = BitmapValue((char *) lhs.ptr);

Review comment:
       Since static_cast does not support casting between different pointer 
types, the reinterpret_cast is used here.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to