[enhance](mtmv)when calculating the availability of MTMV, no longer c… (#36617)

pick: #36507
This commit is contained in:
zhangdong
2024-07-02 14:24:33 +08:00
committed by GitHub
parent 0c8934642e
commit ebc1afed4a
2 changed files with 16 additions and 3 deletions

View File

@ -62,8 +62,8 @@ public class MTMVRewriteUtil {
return res;
}
// check mv is normal
if (!(mtmv.getStatus().getState() == MTMVState.NORMAL
&& mtmv.getStatus().getRefreshState() == MTMVRefreshState.SUCCESS)) {
if (mtmv.getStatus().getState() != MTMVState.NORMAL
|| mtmv.getStatus().getRefreshState() == MTMVRefreshState.INIT) {
return res;
}
Map<String, Set<String>> partitionMappings = null;