This is an automated email from the ASF dual-hosted git repository.

lihaopeng pushed a commit to branch new_join
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/new_join by this push:
     new 40f81a25ddb opt for right anti (#26697)
40f81a25ddb is described below

commit 40f81a25ddb66cf5915cfa8e8219616a441d0786
Author: Pxl <[email protected]>
AuthorDate: Thu Nov 9 20:50:45 2023 +0800

    opt for right anti (#26697)
---
 be/src/vec/common/hash_table/hash_map.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/vec/common/hash_table/hash_map.h 
b/be/src/vec/common/hash_table/hash_map.h
index d6c41bbc818..1ccf34c921c 100644
--- a/be/src/vec/common/hash_table/hash_map.h
+++ b/be/src/vec/common/hash_table/hash_map.h
@@ -334,7 +334,7 @@ private:
         auto do_the_probe = [&]() {
             auto matched_cnt_old = matched_cnt;
             while (build_idx && matched_cnt < batch_size) {
-                if (keys[probe_idx] == build_keys[build_idx]) {
+                if (!visited[build_idx] && keys[probe_idx] == 
build_keys[build_idx]) {
                     build_idxs[matched_cnt++] = build_idx;
                 }
                 build_idx = next[build_idx];


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

Reply via email to