Spark: Expose the effective split target size as a driver metric

Đang mở
#18,708 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ 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

Read spark/v4.2/spark/src/main/java/org/apache/iceberg/spark/source/SparkScan.java around lines 369-385 to see where the split target is resolved and passed to task-group planning. Add a driver metric named effectiveSplitTargetSize holding the resolved target in bytes. Tests should cover adaptive sizing, disabled adaptation, explicit read option, and staged rewrite scans; done means the metric is visible in Spark scan driver metrics.

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

Mô tả

Feature Request / Improvement

Iceberg's Spark scan resolves the split target from the read option, session configuration, table property, or default, then may reduce it through adaptive sizing. The resulting target is passed to task-group planning, but the adjustment is currently visible only in a debug log. Scan analysis and autotuning tools cannot reliably recover the target from Spark SQL metrics or event logs. This matters when diagnosing scan partition sizes; see cudf-spark-tools#2206.

Please expose the effective split target size in bytes as a Spark scan driver metric, for example effectiveSplitTargetSize. Its value should be the target actually passed to task-group planning after configuration precedence and adaptive sizing are resolved, rather than an individual input partition's size.

Useful checks would cover an adaptive target, a configured target with adaptation disabled, an explicit read option, and staged rewrite scans that use their resolved target directly. An initial contribution can target Spark 4.2, with older Spark integrations considered separately.

Query engine

Spark

Willingness to contribute
  • I can contribute this improvement/feature independently
Ngôn ngữ chính
Java
Star
9.4k
Fork
3.7k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
169

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.