[VL] Remove the unused veloxToArrow metric

Đang mở
#13,341 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 3 ngày

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

Đá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
58/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, java, scala
Lĩnh vực
backend

Hướng nghiên cứu

Trace veloxToArrow through ColumnarBatch, ResultIterator, Runtime::getMetrics, the JNI Metrics constructor, MetricsUtil.updateTransformerMetricsInternal, and JoinMetricsUpdater.updateJoinMetrics in the Velox and Bolt backends. Start by checking the JVM side after #3854 and the native metric’s production in VeloxColumnarBatch::ensureFlattened; remove its carrying code and the unused parameter. Done when no path sends or consumes the metric and the uninitialized exportNanos_ value is no longer sent.

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

Mô tả

The native veloxToArrow metric, the time VeloxColumnarBatch::ensureFlattened spends flattening a batch before it is exported, is sent to the JVM in Metrics.SingleMetric. Nothing on the JVM side has read it since #3854. The value is still carried through ColumnarBatch, ResultIterator, Runtime::getMetrics, the JNI Metrics constructor, MetricsUtil.updateTransformerMetricsInternal and JoinMetricsUpdater.updateJoinMetrics, which takes it as a parameter and ignores it. ResultIterator::exportNanos_ is also never initialized, so fetching metrics from an iterator that never produced a batch sends an indeterminate value to the JVM.

The metric and the code that carries it can be removed from the Velox and Bolt backends.

This issue was written with the assistance of AI (Claude Opus).

Ngôn ngữ chính
Scala
Star
1.6k
Fork
685
Merge trung bình
4 ngày 16 giờ
Pull request đã merge (30 ngày)
84

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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/gluten

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

Issue tương tự

Thêm issue về Scala

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.