We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e1d4bf commit a2d2a75Copy full SHA for a2d2a75
paimon-spark/paimon-spark-common/src/main/java/org/apache/paimon/spark/procedure/CompactProcedure.java
@@ -387,8 +387,12 @@ private void compactUnAwareBucketTable(
387
compactionTasks = new ArrayList<>();
388
}
389
if (partitionIdleTime != null) {
390
+ SnapshotReader snapshotReader = table.newSnapshotReader();
391
+ if (partitionPredicate != null) {
392
+ snapshotReader.withPartitionFilter(partitionPredicate);
393
+ }
394
Map<BinaryRow, Long> partitionInfo =
- table.newSnapshotReader().partitionEntries().stream()
395
+ snapshotReader.partitionEntries().stream()
396
.collect(
397
Collectors.toMap(
398
PartitionEntry::partition,
0 commit comments