[VL] Driver-side broadcast hash table build falls back when a build key is a generated alias

Đang mở
#13,330 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ó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
62/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ệ
scala, spark
Lĩnh vực
data-engineering

Hướng nghiên cứu

Start with buildHashTableWithRuntime in ColumnarBuildSideRelation and UnsafeColumnarBuildSideRelation, and compare it with the executor-side buildHashTable that #12407 already fixed by mapping each join key to the build output attribute with the same exprId. Trace the fallback through VeloxSparkPlanExecApi. Done when the json_tuple LATERAL VIEW query with driverSideBroadcastHashTableBuild=true builds on the driver without the 'falling back to executor-side build' log.

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

Mô tả

With spark.gluten.sql.columnar.backend.velox.driverSideBroadcastHashTableBuild=true, the driver-side hash table build fails when a join key reaches the build side under a generated alias, for example the json_tuple LATERAL VIEW query added in #12407. The native build reports Field not found: key#329. Available fields are: p_partkey#197, _post_11#329. VeloxSparkPlanExecApi catches the error, logs "Failed to build hash table on driver ... falling back to executor-side build", and each executor builds the table instead. Results are correct, but the driver-side build never takes effect for such joins.

#12407 fixed this for the executor-side buildHashTable in ColumnarBuildSideRelation and UnsafeColumnarBuildSideRelation by mapping each join key to the build output attribute with the same exprId. buildHashTableWithRuntime, which does the driver-side build, still passes the unmapped name.

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.