foxtail463 commented on code in PR #63639:
URL: https://github.com/apache/doris/pull/63639#discussion_r4143144234


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/MTMV.java:
##########
@@ -875,6 +880,13 @@ private MTMVCache getCache(boolean sessionVarsMatch) {
     }
 
     private void setCache(boolean sessionVarsMatch, MTMVCache cache) {
+        // A null cache clears a failed/replayed rebuild. Otherwise output 
guarantees are valid
+        // only when the current definition has refreshed every stored 
partition. State changes
+        // clear these snapshots; restoring NORMAL after one partition refresh 
is not sufficient.
+        if (cache != null && (status.getState() == MTMVState.SCHEMA_CHANGE

Review Comment:
   开启 allow_modify_materialized_view_data=true 后主动修改 MV 数据,不保证透明改写的正确性



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to