Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン 初心者向け
#4,490 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
静か
技術スタック
scala
領域
documentation

調査の方向性

CometCast.scala から始め、参照されている Spark 4.1.1 のソースにある Cast.scala と cast の処理を比較します。未サポートの理由が自動生成される互換性ガイドにどのように反映されるかを追跡し、そのうえで、TimeType を含む cast が未サポートであることをガイドが明示的に報告することを、native cast の動作を変更せずに確認します。

索引モデルが issue の本文から書いたものです。

説明

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).
主要言語
Scala
スター
1.3k
フォーク
391
平均マージ
2日 20時間
マージ済み PR(30日)
437

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/datafusion-comet のほかの issue

apache/datafusion-comet の issue をすべて見る

似ている issue

Scala の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。