BiteTheDDDDt commented on code in PR #43273:
URL: https://github.com/apache/doris/pull/43273#discussion_r1830971941


##########
be/src/pipeline/exec/set_source_operator.cpp:
##########
@@ -139,9 +138,21 @@ Status 
SetSourceOperatorX<is_intersect>::_get_data_in_hashtable(
                 _add_result_columns(local_state, value, block_size);
             }
         }
+    };
+
+    auto& iter = hash_table_ctx.iterator;
+    for (; iter != hash_table_ctx.hash_table->end() && block_size < 
batch_size; ++iter) {
+        add_result(iter->get_second());
     }
 
     *eos = iter == hash_table_ctx.hash_table->end();
+    if (*eos && hash_table_ctx.hash_table->has_null_key_data()) {
+        auto value = hash_table_ctx.hash_table->template 
get_null_key_data<RowRefListWithFlags>();

Review Comment:
   has_null_key_data return true means hash table is `DataWithNullKey`, return 
type of other types of hash tables(except DataWithNullKey) is not 
RowRefListWithFlags



-- 
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: commits-unsubscr...@doris.apache.org

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