xiaokang commented on code in PR #45833:
URL: https://github.com/apache/doris/pull/45833#discussion_r1896618690


##########
be/src/olap/rowset/segment_v2/bloom_filter.h:
##########
@@ -167,6 +167,16 @@ class BloomFilter {
         return hash_code;
     }
 
+    static Result<uint64_t> hash(const char* buf, uint32_t size, 
HashStrategyPB strategy) {
+        if (strategy == HASH_MURMUR3_X64_64) {
+            uint64_t hash_code;
+            murmur_hash3_x64_64(buf, size, DEFAULT_SEED, &hash_code);

Review Comment:
   use _hash_func



##########
be/src/olap/rowset/segment_v2/bloom_filter.h:
##########
@@ -167,6 +167,16 @@ class BloomFilter {
         return hash_code;
     }
 
+    static Result<uint64_t> hash(const char* buf, uint32_t size, 
HashStrategyPB strategy) {

Review Comment:
   can you use the function: hash(const char* buf, uint32_t size)?



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