Skip to content

[WIP][core][flink] supports count star pushdown for all-global-indexed filters.#7680

Open
steFaiz wants to merge 2 commits intoapache:masterfrom
steFaiz:flink_index_count_pushdown
Open

[WIP][core][flink] supports count star pushdown for all-global-indexed filters.#7680
steFaiz wants to merge 2 commits intoapache:masterfrom
steFaiz:flink_index_count_pushdown

Conversation

@steFaiz
Copy link
Copy Markdown
Contributor

@steFaiz steFaiz commented Apr 21, 2026

Purpose

This introduce a PredicateVisitor to decide whether a Predicate is all covered by scalar index (e.g. btree now).
Then we can accelerate count(*) queries on indexed columns without touching data files. This is useful in some AI situations. For example, before filtering high quality data, we might want to check the portion to decide the threshold.

Tests

org.apache.paimon.globalindex.ScalarIndexedFieldsVisitorTest for UnitTest
org.apache.paimon.flink.BatchFileStoreITCase for ITCase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant