StrictMetricsEvaluator can match every row for nested isNaN with incomplete value counts

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

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

@Anurag-S1ngh がすでに取り組んでいます。

2026年12月1日 から。

  • #19243 @Anurag-S1ngh による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
databases

調査の方向性

Start with StrictMetricsEvaluator and the synthetic metrics cases in TestStrictMetricsEvaluator; compare the nested isNaN decision with the row evaluator when child value counts do not cover the file's record count. Then review the related cases in TestDeleteFiles across format versions 1–3. Done means incomplete NaN counts cannot authorize deleting the whole file, while complete all-NaN metrics still can.

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

説明

StrictMetricsEvaluator currently treats a nested isNaN predicate as matching every row when the NaN count equals the value count, even if those counts do not cover the whole file.

For example, consider an optional struct parent with a required double value, and two rows: {parent: {value: NaN}} and {parent: null}. Legacy ORC metrics can report record count 2, child value count 1, null count 0, and NaN count 1. The row evaluator rejects the second row, but the strict metrics evaluator returns true. Consequently a metadata delete can remove the entire file instead of rejecting a partial match.

Expected: strict evaluation returns false unless the nested NaN count proves coverage of every row. Files with complete all-NaN metrics should remain eligible for metadata deletion.

Reproduced with synthetic file metrics in TestStrictMetricsEvaluator and TestDeleteFiles (format versions 1–3, main and a named branch). All seven new regression cases fail on the unmodified evaluator and pass with the fix. The targeted API/core suites pass (163 tests, 16 skipped), as do Spotless checks. Related to #19064, but this addresses strict NaN evaluation rather than inclusive null pruning.

主要言語
Java
スター
9.5k
フォーク
3.7k
平均マージ
2日 2時間
マージ済み PR(30日)
170

環境構築

はじめの一歩

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

apache/iceberg のほかの issue

apache/iceberg の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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