BiteTheDDDDt opened a new pull request, #62956:
URL: https://github.com/apache/doris/pull/62956

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: None
   
   Problem Summary: Nested loop join currently materializes full intermediate 
payload columns before evaluating non-equi join conjuncts. For 
projection-pruned cases such as COUNT(*) over an INNER/CROSS nested loop join, 
this causes unnecessary row expansion, copy, and filter cost even though the 
final projection does not need payload columns.
   
   This PR adds FE-driven materialized slot planning for nested loop join and 
lets BE delay payload materialization until after join conjunct evaluation. A 
newly set but empty materialized slot list explicitly represents 
COUNT/constant-projection cases where no real payload slot is needed.
   
   ### Release note
   
   Improve nested loop join execution by delaying payload materialization for 
projection-pruned inner/cross joins.
   
   ### Check List (For Author)
   
   - Test: Build and style checks
       - ./generated-source.sh
       - build-support/clang-format.sh 
be/src/exec/operator/nested_loop_join_probe_operator.cpp 
be/src/exec/operator/nested_loop_join_probe_operator.h && 
build-support/check-format.sh
       - cd fe && mvn checkstyle:check -pl fe-core -DskipTests
       - ./build.sh --fe -j8
       - ./build.sh --be -j8
       - build-support/run-clang-tidy.sh (blocked by pre-existing 
readability-function-size/readability-function-cognitive-complexity diagnostics 
in nested_loop_join_probe_operator.cpp and jni-util.h static_assert diagnostics)
   - Behavior changed: No
   - Does this need documentation: No


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