Evaluate large IN predicates against file and row-group bounds instead of skipping them

Aperta
#19,014 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@dshogan-amzn ci sta già lavorando.

Dal 17/11/2026.

  • #19015 di @dshogan-amzn — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
java

Direzione di ricerca

Start by reading InclusiveMetricsEvaluator, ManifestEvaluator, and ParquetMetricsRowGroupFilter, along with the rationale in #1588. The issue proposes sorting the literals once and binary-searching each file or row-group bounds; compare the existing behavior and tests for all three evaluators. Done means large IN predicates can prune nonmatching bounds without the current 200-literal cutoff, with tests covering the boundary and large lists.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

improvement
Feature Request / Improvement

InclusiveMetricsEvaluator, ManifestEvaluator and ParquetMetricsRowGroupFilter each stop evaluating an IN predicate once it has more than 200 literals and treat the file, manifest or row group as a possible match. The limit was added in #1588 because each check compared every literal against the bounds, so a large list cost O(literals) per file during planning.

For a table sorted or clustered by the IN column, this means a query with 201 values keeps every file in its window, while the same query with 200 values keeps only the files whose bounds contain a value. For example, on a manifest of 10,000 files with disjoint key ranges, an IN with 200 spread-out values selects 200 files and an IN with 201 values selects all 10,000.

Sorting the literals once per predicate and binary-searching each file's [lower, upper] makes the check O(log literals) per file, which removes the planning-cost reason for the limit.

Query engine

None

Willingness to contribute
  • I can contribute this improvement/feature independently
  • I would be willing to contribute this improvement/feature with guidance from the Iceberg community
  • I cannot contribute this improvement/feature at this time
Lingua principale
Java
Stelle
9.4k
Fork
3.7k
Merge medio
2g 16h
PR unite (30g)
160

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/iceberg

Tutte le issue di apache/iceberg

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.