branch-4.2: [fix](mtmv) Check agg/window partition keys only for tracked partition outputs #65393 - #68295
Merged
yiguolei merged 2 commits intoSep 23, 2026
Conversation
…n outputs (apache#65393) Problem Summary: MV partition tracking could reject valid partitioned MVs when an aggregate, window, or rewritten PartitionTopN exists on a branch that does not carry the MV partition column. A typical case is a left join where the MV partitions by the left table column, while the right subquery has row_number() or group by on unrelated keys. Solution: Gate aggregate/window/partition-topn partition-key validation by whether the current plan output contains a tracked MV partition slot. Add LogicalPartitionTopN handling for rewritten row_number ... rn = 1 --------- Co-authored-by: yangtao555 <yangtao555@jd.com>
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
…o Suite.groovy The branch-4.2 pick of the mtmv partition-key check adds focus cases to cross_join_range_date_increment_create that call waitingMTMVTaskFinishedWithoutAnalyze, but the helper was introduced on master by apache#61290 which is not picked to branch-4.2, so the suite fails with MissingMethodException. Key changes: - Port waitingMTMVTaskFinishedWithoutAnalyze from master Suite.groovy: wait for the MTMV task to reach SUCCESS without the analyze step. Unit Test: - Focus cases of cross_join_range_date_increment_create extracted into a standalone suite and run locally: passed.
Contributor
Author
|
run buildall |
Contributor
Author
|
run external |
Contributor
FE UT Coverage ReportIncrement line coverage |
Contributor
Author
|
run external |
Contributor
Author
|
run nonConcurrent |
1 similar comment
Contributor
Author
|
run nonConcurrent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cherry-pick: #65393