Uh oh!
There was an error while loading. Please reload this page.
branch-4.1:[fix](mtmv) Refresh MTMV after excluded trigger tables change (#64041) - #67267
Merged
Merged
Conversation
…#64041) ### What problem does this PR solve? Related PR: apache#64041 Problem Summary: Changing the effective `excluded_trigger_tables` set changes which base tables participate in MTMV freshness decisions. Reusing the old `refreshSnapshot` can make a later AUTO refresh skip work under the new exclude rules, leaving MV data based on the old snapshot. `MTMVTask.calculateNeedRefreshPartitions()` called `isMTMVSync()` before verifying whether the refresh baseline was still complete. After altering `excluded_trigger_tables`, the new rules could skip changed base tables and incorrectly mark the MV as fresh. Detect effective excluded table set changes, bump `schemaChangeVersion`, and clear the refresh snapshot. AUTO refresh now treats an incomplete snapshot as requiring a complete refresh before checking synchronization. Manual specified-partition refresh keeps its existing behavior. ### Release note Changing `excluded_trigger_tables` now rebuilds the MTMV refresh baseline on the next AUTO refresh. ### Check List (For Author) - Test: Unit Test - `MTMVTest` - `MTMVTaskTest` - Behavior changed: Yes, AUTO refresh rebuilds an invalidated MTMV baseline - Does this need documentation: No
hello-stephen
commented
Aug 28, 2026
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
seawinde
commented
Aug 28, 2026
MemberAuthor
run buildall |
yiguolei
approved these changes
Aug 28, 2026
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
pr: #64041
commitId: 3d5cee2