seawinde commented on code in PR #62984:
URL: https://github.com/apache/doris/pull/62984#discussion_r3207715867
##########
fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVPartitionUtil.java:
##########
@@ -94,6 +94,7 @@ public static boolean isMTMVPartitionSync(MTMVRefreshContext
refreshContext, Str
Set<TableNameInfo> excludedTriggerTables) throws AnalysisException
{
MTMV mtmv = refreshContext.getMtmv();
Map<MTMVRelatedTableIf, Set<String>> partitionMappings =
refreshContext.getByPartitionName(partitionName);
+ Set<TableNameInfo> excludedTriggerTablesToCheck =
Sets.newHashSet(excludedTriggerTables);
Review Comment:
The change looks valid. isMTMVPartitionSync should not mutate the
caller-owned excludedTriggerTables, especially because some paths pass
immutable sets such as ImmutableSet.of().
Please add a simple FE unit test to cover this case: pass an immutable
excluded trigger table set into isMTMVPartitionSync for a partitioned MTMV
path, and verify the method does not throw UnsupportedOperationException.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]