[fix](mtmv)compatibility metadata without refreshsnapshot #30735

This commit is contained in:
zhangdong
2024-02-02 13:29:46 +08:00
committed by yiguolei
parent 2ca911fb5d
commit e21c9dca9c

View File

@ -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();
}
}
}