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

Abierto
#19,014 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@dshogan-amzn ya está trabajando en esto.

Desde el 17/11/2026.

  • #19015 de @dshogan-amzn — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
java

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Java
Estrellas
9.4k
Forks
3.7k
Merge medio
2 d 15 h
PR fusionados (30 d)
169

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/iceberg

Todos los issues de apache/iceberg

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.