ANSI NaN and infinity use the wrong exception for cast to timestamp
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
该 issue 指出错误类 InvalidInputInCastToDatetime,它已经映射到 Spark 的 SparkDateTimeException。请先找到在 ANSI 模式下,NaN 和无穷大转换为 TIMESTAMP 的路径却选择了 SparkNumberFormatException 的位置,并复用现有映射。题目没有给出文件,因此请搜索 InvalidInputInCastToDatetime 以及 ANSI 类型转换的测试。当 ANSI 模式下将 NaN 或无穷大的 double 转换为 TIMESTAMP 时抛出 SparkDateTimeException,且消息格式与 Spark 一致,即视为完成。
由索引模型根据 Issue 内容生成。
描述
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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/datafusion-comet 的其他 Issue
-
area:expressions enhancement good first issue help wanted requires-triage rust tech debt
难度 2/5 1-3 小时 新手友好度 82/100
apache/datafusion-comet#6983 ·
维护者通常 1 天内回复
-
area:expressions enhancement help wanted requires-triage rust tech debt
难度 2/5 半天 新手友好度 68/100
apache/datafusion-comet#6974 ·
维护者通常 1 天内回复
-
Iceberg data tables whose names end with a metadata-table name fall back to Spark可能重新可做 @aryan9948 于 8 天前认领,目前没有进行中的 PR。 未关闭requires-triage
难度 2/5 1-3 小时 新手友好度 75/100
apache/datafusion-comet#6719 · 1 条评论 ·
维护者通常 1 天内回复
-
ANSI integral SUM overflow reports "integer overflow" without Spark's try_add suggestion可能已有人在做 @0lai0 于 9 天前认领。 未关闭area:aggregation bug priority:medium
难度 2/5 1-3 小时 新手友好度 82/100
apache/datafusion-comet#6661 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Native from_json with a schema that repeats a field name fails with "ArrowArray struct has 2 children (expected 1)"可能已有人在做 @Samearth17 于 10 天前认领。 未关闭area:expressions area:ffi bug good first issue priority:medium
难度 2/5 1-3 小时 新手友好度 70/100
apache/datafusion-comet#6592 ·
维护者通常 1 天内回复
查看 apache/datafusion-comet 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
? - Needs Triage documentation user_tools
难度 2/5 半天 新手友好度 62/100
NVIDIA/cudf-spark-tools#2190 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
lichess-org/lila#22088 ·
维护者通常 1 天内回复
-
agent-ready area/dev-tooling layer/infra size/S
难度 1/5 1 小时以内 新手友好度 90/100
marola-dev/marola-app#111 ·
维护者通常 1 天内回复
-
agent-ready area/dev-tooling kind/docs-only layer/docs size/XS
难度 2/5 1 小时以内 新手友好度 72/100
marola-dev/marola#824 ·
维护者通常 1 天内回复