Skip to content
Open
Show file tree
Hide file tree
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 @@ -43,7 +43,6 @@
import org.apache.paimon.predicate.Predicate;
import org.apache.paimon.predicate.PredicateBuilder;
import org.apache.paimon.table.FormatTable;
import org.apache.paimon.table.format.predicate.PredicateUtils;
import org.apache.paimon.table.source.InnerTableScan;
import org.apache.paimon.table.source.Split;
import org.apache.paimon.table.source.TableScan;
Expand Down Expand Up @@ -122,7 +121,10 @@ public List<PartitionEntry> listPartitionEntries() {
new Path(table.location()),
table.partitionKeys().size(),
table.partitionKeys(),
coreOptions.formatTablePartitionOnlyValueInPath());
coreOptions.formatTablePartitionOnlyValueInPath(),
null,
table.partitionType(),
table.defaultPartName());
List<PartitionEntry> partitionEntries = new ArrayList<>();
for (Pair<LinkedHashMap<String, String>, Path> partition2Path : partition2Paths) {
BinaryRow row = toPartitionRow(partition2Path.getKey());
Expand Down Expand Up @@ -199,17 +201,11 @@ List<Pair<LinkedHashMap<String, String>, Path>> findPartitions() {
// search paths with partition filter optimization
// This will prune partition directories early during traversal,
// which is especially important for cloud storage like OSS/S3
Map<String, Predicate> partitionPredicates = new HashMap<>();
Optional<Predicate> predicate = extractPartitionPredicate(partitionFilter);
LOG.debug(
"Extracted predicate for format table {} partition pruning: {}",
table.name(),
predicate.orElse(null));
if (predicate.isPresent()) {
partitionPredicates =
PredicateUtils.splitPartitionPredicate(
table.partitionType(), predicate.get());
}

Pair<Path, Integer> scanPathAndLevel =
computeScanPathAndLevel(
Expand All @@ -224,7 +220,7 @@ List<Pair<LinkedHashMap<String, String>, Path>> findPartitions() {
scanPathAndLevel.getRight(),
table.partitionKeys(),
onlyValueInPath,
partitionPredicates,
predicate.orElse(null),
table.partitionType(),
table.defaultPartName());
}
Expand Down

This file was deleted.

Loading
Loading