github-actions[bot] commented on code in PR #27397:
URL: https://github.com/apache/doris/pull/27397#discussion_r1403174516


##########
be/src/vec/exec/join/process_hash_table_probe_impl.h:
##########
@@ -412,17 +199,17 @@ Status ProcessHashTableProbe<JoinOpType, 
Parent>::do_process(HashTableType& hash
     output_block->swap(mutable_block.to_block());
 
     if constexpr (with_other_conjuncts) {
-        return do_other_join_conjuncts(output_block, is_mark_join, 
multi_matched_output_row_count,
-                                       is_the_last_sub_block);
+        return do_other_join_conjuncts(output_block, is_mark_join, 
is_the_last_sub_block,
+                                       
hash_table_ctx.hash_table->get_visited());
     }
 
     return Status::OK();
 }
 
 template <int JoinOpType, typename Parent>
 Status ProcessHashTableProbe<JoinOpType, Parent>::do_other_join_conjuncts(

Review Comment:
   warning: function 'do_other_join_conjuncts' has cognitive complexity of 78 
(threshold 50) [readability-function-cognitive-complexity]
   ```cpp
   Status ProcessHashTableProbe<JoinOpType, Parent>::do_other_join_conjuncts(
                                                     ^
   ```
   <details>
   <summary>Additional context</summary>
   
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:214:** +1, including 
nesting penalty of 0, nesting level increased to 1
   ```cpp
       if (!row_count) {
       ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:223:** +1, including 
nesting penalty of 0, nesting level increased to 1
   ```cpp
           
RETURN_IF_ERROR(VExprContext::execute_conjuncts(_parent->_other_join_conjuncts, 
nullptr,
           ^
   ```
   **be/src/common/status.h:523:** expanded from macro 'RETURN_IF_ERROR'
   ```cpp
       do {                                \
       ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:223:** +2, including 
nesting penalty of 1, nesting level increased to 2
   ```cpp
           
RETURN_IF_ERROR(VExprContext::execute_conjuncts(_parent->_other_join_conjuncts, 
nullptr,
           ^
   ```
   **be/src/common/status.h:525:** expanded from macro 'RETURN_IF_ERROR'
   ```cpp
           if (UNLIKELY(!_status_.ok())) { \
           ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:238:** +1, including 
nesting penalty of 0, nesting level increased to 1
   ```cpp
       if constexpr (JoinOpType == TJoinOp::LEFT_OUTER_JOIN ||
       ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:245:** +2, including 
nesting penalty of 1, nesting level increased to 2
   ```cpp
           for (int i = 0; i < row_count; ++i) {
           ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:249:** +3, including 
nesting penalty of 2, nesting level increased to 3
   ```cpp
               if (!join_hit) {
               ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:251:** +1, nesting 
level increased to 3
   ```cpp
               } else {
                 ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:254:** +3, including 
nesting penalty of 2, nesting level increased to 3
   ```cpp
               if (filter_map[i]) {
               ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:259:** +2, including 
nesting penalty of 1, nesting level increased to 2
   ```cpp
           for (size_t i = 0; i < row_count; ++i) {
           ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:260:** +3, including 
nesting penalty of 2, nesting level increased to 3
   ```cpp
               if (filter_map[i]) {
               ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:263:** +4, including 
nesting penalty of 3, nesting level increased to 4
   ```cpp
                   if constexpr (JoinOpType == TJoinOp::FULL_OUTER_JOIN) {
                   ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:269:** +1, nesting 
level increased to 1
   ```cpp
       } else if constexpr (JoinOpType == TJoinOp::LEFT_ANTI_JOIN ||
              ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:275:** +2, including 
nesting penalty of 1, nesting level increased to 2
   ```cpp
           if (is_mark_join) {
           ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:281:** +3, including 
nesting penalty of 2, nesting level increased to 3
   ```cpp
               for (size_t i = 0; i < row_count; ++i) {
               ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:283:** +4, including 
nesting penalty of 3, nesting level increased to 4
   ```cpp
                   if constexpr (JoinOpType != TJoinOp::LEFT_SEMI_JOIN) {
                   ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:284:** +5, including 
nesting penalty of 4, nesting level increased to 5
   ```cpp
                       if (!_build_indexs[i]) {
                       ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:291:** +1, nesting 
level increased to 2
   ```cpp
           } else {
             ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:292:** +3, including 
nesting penalty of 2, nesting level increased to 3
   ```cpp
               for (size_t i = 0; i < row_count; ++i) {
               ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:293:** +4, including 
nesting penalty of 3, nesting level increased to 4
   ```cpp
                   if (filter_column_ptr[i]) {
                   ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:294:** +5, including 
nesting penalty of 4, nesting level increased to 5
   ```cpp
                       if constexpr (JoinOpType == TJoinOp::LEFT_SEMI_JOIN) {
                       ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:297:** +1, nesting 
level increased to 5
   ```cpp
                       } else {
                         ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:298:** +6, including 
nesting penalty of 5, nesting level increased to 6
   ```cpp
                           if (_build_indexs[i]) {
                           ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:301:** +1, nesting 
level increased to 6
   ```cpp
                           } else {
                             ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:305:** +1, nesting 
level increased to 4
   ```cpp
                   } else {
                     ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:312:** +1, nesting 
level increased to 1
   ```cpp
       } else if constexpr (JoinOpType == TJoinOp::RIGHT_SEMI_JOIN ||
              ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:314:** +2, including 
nesting penalty of 1, nesting level increased to 2
   ```cpp
           for (int i = 0; i < row_count; ++i) {
           ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:317:** +1, nesting 
level increased to 1
   ```cpp
       } else if constexpr (JoinOpType == TJoinOp::RIGHT_OUTER_JOIN) {
              ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:319:** +2, including 
nesting penalty of 1, nesting level increased to 2
   ```cpp
           for (int i = 0; i < row_count; ++i) {
           ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:326:** +1, including 
nesting penalty of 0, nesting level increased to 1
   ```cpp
       if constexpr (JoinOpType == TJoinOp::RIGHT_SEMI_JOIN ||
       ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:329:** +1, nesting 
level increased to 1
   ```cpp
       } else {
         ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:330:** +2, including 
nesting penalty of 1, nesting level increased to 2
   ```cpp
           if constexpr (JoinOpType == TJoinOp::LEFT_SEMI_JOIN ||
           ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:335:** +2, including 
nesting penalty of 1, nesting level increased to 2
   ```cpp
           RETURN_IF_ERROR(Block::filter_block(output_block, result_column_id,
           ^
   ```
   **be/src/common/status.h:523:** expanded from macro 'RETURN_IF_ERROR'
   ```cpp
       do {                                \
       ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:336:** +3, including 
nesting penalty of 2, nesting level increased to 3
   ```cpp
                                               is_mark_join ? 
output_block->columns() : orig_columns));
                                                            ^
   ```
   **be/src/vec/exec/join/process_hash_table_probe_impl.h:335:** +3, including 
nesting penalty of 2, nesting level increased to 3
   ```cpp
           RETURN_IF_ERROR(Block::filter_block(output_block, result_column_id,
           ^
   ```
   **be/src/common/status.h:525:** expanded from macro 'RETURN_IF_ERROR'
   ```cpp
           if (UNLIKELY(!_status_.ok())) { \
           ^
   ```
   
   </details>
   



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