Skip to content

branch-4.1: [opt](nereids) rewrite PreferPushDownProject to slots before filter-join pushdown #61635#61715

Merged
yiguolei merged 1 commit intobranch-4.1from
auto-pick-61635-branch-4.1
Mar 26, 2026
Merged

branch-4.1: [opt](nereids) rewrite PreferPushDownProject to slots before filter-join pushdown #61635#61715
yiguolei merged 1 commit intobranch-4.1from
auto-pick-61635-branch-4.1

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #61635

…oin pushdown (#61635)

Push PreferPushDownProject expressions to the matching join child as
aliases and replace them with slots in filter predicates. This keeps OR
predicates above join while exposing nested-field access below join for
storage-level pruning acceleration.

Plan tree demo:

Before:
```
  LogicalFilter((match_any(info['context'], 'abc') OR r.k2 > 60))
    LogicalJoin(INNER)
      left:  LogicalOlapScan(student)
      right: LogicalOlapScan(score)
```

After:
```

  LogicalFilter((slot#x OR r.k2 > 60))
    LogicalJoin(INNER)
      left:  LogicalProject(student.*, match_any(info['context'], 'abc') AS slot#x)
                  LogicalOlapScan(student)
      right: LogicalOlapScan(score)
```
@github-actions github-actions bot requested a review from yiguolei as a code owner March 25, 2026 08:24
@hello-stephen
Copy link
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?

@dataroaring dataroaring reopened this Mar 25, 2026
@hello-stephen
Copy link
Contributor

run buildall

@yiguolei yiguolei merged commit 7e4e3a9 into branch-4.1 Mar 26, 2026
26 of 29 checks passed
@airborne12 airborne12 deleted the auto-pick-61635-branch-4.1 branch March 26, 2026 11:13
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.

4 participants