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

オープン
#19,014 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@dshogan-amzn がすでに取り組んでいます。

2026年11月17日 から。

  • #19015 @dshogan-amzn による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
java

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Java
スター
9.4k
フォーク
3.7k
平均マージ
2日 15時間
マージ済み PR(30日)
169

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/iceberg のほかの issue

apache/iceberg の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。