[enhance](mtmv) refresh hms table before run mtmv task (#38212) (#39490)

pick from master #38212​
This commit is contained in:
zhangdong
2024-08-16 20:05:52 +08:00
committed by GitHub
parent ae8073f155
commit 472565cd48
2 changed files with 3 additions and 14 deletions

View File

@ -173,7 +173,7 @@ public class MTMVTask extends AbstractTask {
this.relation = MTMVPlanUtil.generateMTMVRelation(mtmv, ctx);
// Now, the MTMV first ensures consistency with the data in the cache.
// To be completely consistent with hive, you need to manually refresh the cache
// refreshHmsTable();
refreshHmsTable();
if (mtmv.getMvPartitionInfo().getPartitionType() != MTMVPartitionType.SELF_MANAGE) {
MTMVPartitionUtil.alignMvPartition(mtmv);
}
@ -282,7 +282,7 @@ public class MTMVTask extends AbstractTask {
}
/**
* // Before obtaining information from hmsTable, refresh to ensure that the data is up-to-date
* Before obtaining information from hmsTable, refresh to ensure that the data is up-to-date
*
* @throws AnalysisException
* @throws DdlException