Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

ANSI NaN and infinity use the wrong exception for cast to timestamp

未关闭 适合新手
#7,001 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
scala
领域
data

调研方向

该 issue 指出错误类 InvalidInputInCastToDatetime,它已经映射到 Spark 的 SparkDateTimeException。请先找到在 ANSI 模式下,NaN 和无穷大转换为 TIMESTAMP 的路径却选择了 SparkNumberFormatException 的位置,并复用现有映射。题目没有给出文件,因此请搜索 InvalidInputInCastToDatetime 以及 ANSI 类型转换的测试。当 ANSI 模式下将 NaN 或无穷大的 double 转换为 TIMESTAMP 时抛出 SparkDateTimeException,且消息格式与 Spark 一致,即视为完成。

由索引模型根据 Issue 内容生成。

描述

requires-triage

With ANSI on, NaN and infinities raise SparkNumberFormatException (CastInvalidValue) with text like The value 'inf' of the type "STRING". Spark throws SparkDateTimeException: The value Infinity of the type "DOUBLE" cannot be cast to "TIMESTAMP". The error class and SQLSTATE match. InvalidInputInCastToDatetime already maps to Spark's exception. The source type, the spelling (inf versus Infinity), and the quoting differ.

This predates and is unchanged by #6969; found in review there.

主要语言
Scala
星标
1.3k
派生
387
平均合并
2 天 7 小时
30 天内合并 PR
429

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/datafusion-comet 的其他 Issue

查看 apache/datafusion-comet 的全部 Issue

相似的 Issue

更多 Scala Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。