This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 86d955715f3 [fix](mtmv)compatibility metadata without refreshsnapshot 
#30735
86d955715f3 is described below

commit 86d955715f32e80e7fd4a889191c07e044bbcd26
Author: zhangdong <493738...@qq.com>
AuthorDate: Fri Feb 2 13:29:46 2024 +0800

    [fix](mtmv)compatibility metadata without refreshsnapshot #30735
---
 fe/fe-core/src/main/java/org/apache/doris/catalog/MTMV.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/MTMV.java 
b/fe/fe-core/src/main/java/org/apache/doris/catalog/MTMV.java
index f0730f0d371..7f24934c2a6 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/MTMV.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/MTMV.java
@@ -268,6 +268,10 @@ public class MTMV extends OlapTable {
         relation = materializedView.relation;
         mvPartitionInfo = materializedView.mvPartitionInfo;
         refreshSnapshot = materializedView.refreshSnapshot;
+        // For compatibility
+        if (refreshSnapshot == null) {
+            refreshSnapshot = new MTMVRefreshSnapshot();
+        }
     }
 
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to