Skip to content

Commit

Permalink
branch-2.1: [fix](mtmv)After failure, one should quickly return to av…
Browse files Browse the repository at this point in the history
…oid repeated failures #44174 (#44204)

Cherry-picked from #44174

Co-authored-by: zhangdong <[email protected]>
  • Loading branch information
github-actions[bot] and zddr authored Nov 19, 2024
1 parent 2cbfa02 commit ab7f5ba
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,16 @@ public static Collection<Partition> getMTMVCanRewritePartitions(MTMV mtmv, Conne
res.add(partition);
continue;
}
try {
if (refreshContext == null) {
if (refreshContext == null) {
try {
refreshContext = MTMVRefreshContext.buildContext(mtmv);
} catch (AnalysisException e) {
LOG.warn("buildContext failed", e);
// After failure, one should quickly return to avoid repeated failures
return res;
}
}
try {
if (MTMVPartitionUtil.isMTMVPartitionSync(refreshContext, partition.getName(),
mtmvRelation.getBaseTablesOneLevel(),
Sets.newHashSet())) {
Expand Down

0 comments on commit ab7f5ba

Please sign in to comment.