apache / apache/paimon

[Feature] The multiple partition min-max predicate may lead to regression in partition filter

Open
#5,683 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
3.4k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
396

Description

### Search before asking

- [x] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.

### Motivation

In https://github.com/apache/paimon/pull/1982 , it introduce the `MultiplePartitionPredicate` to use the min-max to filter partition. It may lead to regression in partition filter.

We can see the manifest file merge in the picture below. If the delete partition contains the latest partition(compaction) and the historical partition(drop partition), it will lead to a wide range scan for the manifest file, due to the min-max filter not works well

![Image](https://github.com/user-attachments/assets/2907f18a-c3f5-4322-86dd-a82635ad08e1)

### Solution

_No response_

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing MultiplePartitionPredicate and the manifest-file merge behavior introduced in pull request #1982. Reproduce the case where deleted partitions include both the latest compacted partition and a historical dropped partition, then verify that min-max filtering avoids a wide-range manifest scan without regressing partition filtering.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.