Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Doc] CAST has no explicit TimeType branch (Spark 4.1)

Đang mở Phù hợp với người mới
#4,490 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
scala
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu trong CometCast.scala và so sánh cách xử lý cast của nó với Cast.scala từ mã nguồn Spark 4.1.1 được tham chiếu. Theo dõi cách các lý do không được hỗ trợ được đưa vào hướng dẫn tương thích tự động tạo, sau đó xác minh rằng hướng dẫn báo cáo rõ ràng các cast liên quan đến TimeType là không được hỗ trợ mà không thay đổi hành vi cast native.

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

Mô tả

area:expressions documentation priority:low spark 4.1

Describe the bug

Spark 4.1 introduced TimeType (HH:mm:ss). Spark 4.1's Cast.scala adds many TimeType arms (StringType <-> TimeType, TimeType <-> TimeType, TimeType -> IntegralType / DecimalType, etc.). CometCast.isSupported has no TimeType arm at all, so every TimeType-involving cast falls into the default case _ => unsupported(fromType, toType) and falls back to Spark.

The fallback is correct, but it is implicit, and getUnsupportedReasons() on CometCast does not enumerate TimeType as one of the unsupported branches, so the auto-generated compatibility guide doesn't mention it.

Surfaced by the cast audit (collection PR queue).

Expected behavior

Either:

  1. Add an explicit TimeType arm to CometCast.isSupported that returns Unsupported(Some("Cast to/from TimeType is not yet supported")), OR
  2. Implement native TimeType cast (depends on TimeType being supported broadly across Comet, tracked by the broader date/time epic #4418).

The minimum here is the explicit Unsupported arm so the compatibility guide reflects it.

Additional context

  • Spark reference: Cast.scala in /tmp/spark-v4.1.1/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/.
  • Comet matrix: CometCast.scala.
  • Related: #4418 (EPIC for date/time expressions on Spark 4.x).
Ngôn ngữ chính
Scala
Star
1.3k
Fork
377
Merge trung bình
2 ngày 8 giờ
Pull request đã merge (30 ngày)
309

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/datafusion-comet

Tất cả issue của apache/datafusion-comet

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.