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

Đang mở
#19,159 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Anurag-S1ngh đang làm issue này rồi.

Từ ngày 1/12/2026.

  • #19243 của @Anurag-S1ngh — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
databases

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Java
Star
9.5k
Fork
3.7k
Merge trung bình
2 ngày 2 giờ
Pull request đã merge (30 ngày)
170

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/iceberg

Tất cả issue của apache/iceberg

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.