JingsongLi commented on code in PR #6472:
URL: https://github.com/apache/paimon/pull/6472#discussion_r2468876263
##########
paimon-core/src/main/java/org/apache/paimon/append/cluster/IncrementalClusterManager.java:
##########
@@ -169,11 +219,30 @@ public Map<BinaryRow, List<LevelSortedRun>>
constructLevels() {
+ 1);
checkArgument(maxLevel > 1, "Number of levels must be at least 2.");
- Map<BinaryRow, List<DataFileMeta>> partitionFiles = new HashMap<>();
- for (DataSplit dataSplit : dataSplits) {
- partitionFiles
- .computeIfAbsent(dataSplit.partition(), k -> new
ArrayList<>())
- .addAll(dataSplit.dataFiles());
+ Map<BinaryRow, List<DataFileMeta>> partitionFiles =
getPartitionFiles(dataSplits);
+
+ if (specifiedPartitions != null
+ && historyPartitionIdleTime != null
+ && historyPartitionLimit > 0) {
+ List<DataSplit> splitsForHistory =
+ table.newSnapshotReader()
+ .withManifestLevelFilter(partitionLevelFilter)
Review Comment:
Filter is just for finding history partitions, you can not use them to do
full cluster.
--
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]