Skip to content

branch-4.2 [feature](runtime filter) Add decoupled runtime filter support - #68212

Open
englefly wants to merge 2 commits into
apache:branch-4.2from
englefly:pick-62737-4.2
Open

englefly wants to merge 2 commits into
apache:branch-4.2from
englefly:pick-62737-4.2

Conversation

@englefly

Copy link
Copy Markdown
Contributor

Cherry-pick of #62737 to branch-4.2

[feature](runtime filter) Add decoupled runtime filter support

Adaptations for branch-4.2:

  • RuntimeFilterConsumer keeps branch-4.2's wait_infinitely computation (no BITMAP_FILTER term) and wraps it in the new desc->__isset.wait_time_ms branch.
  • RuntimeFilterTranslator/generator call branch-4.2's PushDownContext.createPushDownContextForHashJoin factory instead of master's unified createPushDownContext.
  • The three new session variables use branch-4.2's @VariableMgr.VarAttr; runtimeFilterWaitInfinitely becomes public as upstream requires.
  • shape_check baselines (tpcds 4/11/24/30/31/64/74/81, tpch q8/q9/q21) regenerated with -forceGenOut on branch-4.2.

Testing: BE rebuilt with the BE-side changes and the FE+BE cluster restarted from this branch; regression suite nereids_syntax_p0/decoupled_runtime_filter passes. Known issue: the new FE unit test RuntimeFilterTest#testDecoupledRuntimeFilter does not reach the decoupled-RF shape on branch-4.2 (its 3-table join is planned differently than on master); the other 28 tests in that class pass.

englefly and others added 2 commits September 18, 2026 23:20
…port (apache#62737)

### What problem does this PR solve?
support decoupled rf.
(A join B) join (C join D)
decoupled rf: B->C and B->D

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…decoupled runtime filter

Regenerated with -forceGenOut on branch-4.2 + apache#62737: tpcds_sf100 query31,
tpcds_sf1000 queries 4/11/24/30/64/74/81, tpcds_sf10t_orc queries
4/11/18/31/54/74 and tpch_sf1000 q8/q9/q21.
@englefly
englefly requested a review from yiguolei as a code owner September 18, 2026 16:35
@englefly

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@hello-stephen

Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 73.27% (1826/2492)
Line Coverage 61.07% (32853/53800)
Region Coverage 48.70% (31141/63943)
Branch Coverage 51.58% (9656/18720)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 56.10% (115/205) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 96.23% (51/53) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 74.39% (31447/42274)
Line Coverage 58.69% (350844/597755)
Region Coverage 55.47% (293090/528420)
Branch Coverage 56.29% (132181/234838)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants