If Timestamp/Date pattern contains both literal or variable length entry and fractions of second placeholders it's likely to cause error
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- scala, spark
调研方向
首先,通过 EnceladusDateTimeParser.format 和 Standardization 流程,使用模式 "'at' HH:mm:ss.SSS" 重现该故障。跟踪字面量或可变长度的模式部分如何影响秒的小数部分的位置分析;当包含位于 SSS 之前的字面量的模式能够成功转换且不抛出异常时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
This issue is a shortcut for https://github.com/AbsaOSS/enceladus/issues/677 (moving it from Enceladus to here)
Describe the bug
If Timestamp/Date pattern contains both literal parts or variable length entry (month name, day name, ...) and fractions of second placeholders namely if any literal part is before any second fraction placeholder it will fail Standardization of such filed or even crash with an exception.
To Reproduce
Steps to reproduce the behavior OR commands run:
- Set the timestamp pattern to
"'at' HH:mm:ss.SSS" - Try to Standardize or just use 'EnceladusDateTimeParser.format'
- Exception, wouldn't it be
SSSbe at the tail it would "just" fail the conversion in Standardization
Expected behavior
This needs to work properly
Additional context
The reason is that the quote characters are counted in when the position of second fractions are analyzed. But in the actual string to convert they are not present making the index out of place, even outside the boundaries.
- 主要语言
- Scala
- 星标
- 7
- 派生
- 2
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AbsaOSS/spark-data-standardization 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 55/100
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
-
bug
难度 3/5 1-2 天 新手友好度 48/100
AbsaOSS/spark-data-standardization#68 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
-
Standardization can fail with `Task not serializable` when casting to date is requested可能已有人在做 @qwerty44-U 于 128 天前认领。 未关闭bug
难度 4/5 3-5 天 新手友好度 35/100
查看 AbsaOSS/spark-data-standardization 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
lichess-org/lila#22324 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
canton-network/splice#8142 ·
维护者通常 1 天内回复
-
Users who join a new meeting at the same moment: one sometimes gets "Ops, something went wrong" because bbb-web drops their registration (race on `Meeting.userCustomData`)可能已有人在做 @antobinary 于 1 天前认领。 未关闭module: core
难度 2/5 1-3 小时 新手友好度 72/100
bigbluebutton/bigbluebutton#26318 · 1 条评论 ·
维护者通常 1 天内回复
-
area:ci enhancement priority:low requires-triage
难度 2/5 1-3 小时 新手友好度 74/100
apache/datafusion-comet#7319 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复