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

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

I maintainer di solito rispondono entro 1 giorno

@Anurag-S1ngh ci sta già lavorando.

Dal 1/12/2026.

  • #19243 di @Anurag-S1ngh — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java
Ambito
databases

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
Java
Stelle
9.5k
Fork
3.7k
Merge medio
2g 2h
PR unite (30g)
170

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.