vamshikrishnakyatham commented on code in PR #14042:
URL: https://github.com/apache/hudi/pull/14042#discussion_r2400684844
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/index/ScheduleIndexActionExecutor.java:
##########
@@ -89,7 +89,15 @@ public Option<HoodieIndexPlan> execute() {
Set<String> indexesInflightOrCompleted =
getInflightAndCompletedMetadataPartitions(table.getMetaClient().getTableConfig());
InstantGenerator instantGenerator =
table.getMetaClient().getInstantGenerator();
- Set<String> requestedPartitions =
partitionIndexTypes.stream().map(MetadataPartitionType::getPartitionPath).collect(Collectors.toSet());
+ Set<String> requestedPartitions = partitionIndexTypes.stream().map(p -> {
+ HoodieMetadataConfig metadataConfig = config.getMetadataConfig();
Review Comment:
We have the partitions already present @danny0405 - this is just causing
incorrectness - updated the PR
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/index/ScheduleIndexActionExecutor.java:
##########
@@ -101,7 +109,18 @@ public Option<HoodieIndexPlan> execute() {
return Option.empty();
}
List<MetadataPartitionType> finalPartitionsToIndex =
partitionIndexTypes.stream()
- .filter(p ->
requestedPartitions.contains(p.getPartitionPath())).collect(Collectors.toList());
+ .filter(p -> {
+ HoodieMetadataConfig metadataConfig = config.getMetadataConfig();
Review Comment:
https://github.com/apache/hudi/pull/14042#discussion_r2400684844
--
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]