Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ public static Pair<Map<BaseTableInfo, Set<String>>, Map<BaseTableInfo, Set<Strin
}
MTMVPartitionInfo mvCustomPartitionInfo = mtmv.getMvPartitionInfo();
BaseTableInfo relatedPartitionTable = mvCustomPartitionInfo.getRelatedTableInfo();
if (relatedPartitionTable == null || queryUsedBaseTablePartitionNameSet.isEmpty()) {
if (relatedPartitionTable == null || queryUsedBaseTablePartitionNameSet.isEmpty()
|| !relatedPartitionTable.isInternalTable()) {
// if mv is not partitioned or query not query any partition, doesn't compensate
// in 2.1, external table should not compensate union all
return Pair.of(ImmutableMap.of(), ImmutableMap.of());
}
Collection<Partition> mvValidPartitions = cascadesContext.getStatementContext()
Expand Down