kangpinghuang commented on a change in pull request #3601:
URL: https://github.com/apache/incubator-doris/pull/3601#discussion_r427707616



##########
File path: be/src/exprs/bitmap_function.cpp
##########
@@ -458,7 +458,8 @@ StringVal 
BitmapFunctions::bitmap_from_string(FunctionContext* ctx, const String
     }
 
     std::vector<uint64_t> bits;
-    if (!SplitStringAndParse({(const char*)input.ptr, input.len}, ",", 
&safe_strtou64, &bits)) {
+    // TODO: I think StringPiece's len should also be uint64_t
+    if (!SplitStringAndParse({(const char*)input.ptr, (int)input.len}, ",", 
&safe_strtou64, &bits)) {

Review comment:
       because it relate to another struct StringPiece, which is defined in 
gutil, and to much code reference it. I think whether to change StringPiece 
need to be discussed and if true, can be done in another pr.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to