Skip to content

branch-3.1: [opt](mtmv) Optimize mv rewrite performance when mv has many partition by reduce partition mapping num (#59972) - #66763

Open
seawinde wants to merge 1 commit into
apache:branch-3.1from
seawinde:pr_59972_to_branch-3.1
Open

branch-3.1: [opt](mtmv) Optimize mv rewrite performance when mv has many partition by reduce partition mapping num (#59972)#66763
seawinde wants to merge 1 commit into
apache:branch-3.1from
seawinde:pr_59972_to_branch-3.1

Conversation

@seawinde

Copy link
Copy Markdown
Member

pr: #59972
commitId: b727bc4

…n by reduce partition mapping num (apache#59972)

### What problem does this PR solve?

Issue Number: None

Related PR: apache#59972

Problem Summary: MV rewrite generated partition mappings and fetched versions for every related-table partition even when the query used only a subset. This backport carries the query-used partition filter through the branch-3.1 single-related-table mapping pipeline, expands RANGE filters to complete MV partition granularity for expression partitions, and fetches versions only for mapped partitions.

### Release note

None

### Check List (For Author)

- Test: Unit Test
    - Focused FE unit tests: 24 tests passed
    - `./build.sh --fe`
- Behavior changed: No (performance optimization only)
- Does this need documentation: No
@seawinde
seawinde requested a review from morrySnow as a code owner August 14, 2026 06:06
@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?

@seawinde

Copy link
Copy Markdown
Member Author

run buildall

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