4paradigm / 4paradigm/OpenMLDB
built-in-function: Support returning a null instead of returning zero when data/time functions come across with an exception
- 主要语言
- C++
- 星标
- 1.7k
- 派生
- 331
- 平均合并
- 12 天 12 小时
- 30 天内合并 PR
- 1
描述
**Is your feature request related to a problem? Please describe.**
OpenMLDB have a lots of date/time built-in functions. For example, we provides functions like 'dayofyear()', `dayofweek()`, etc.
We would like to return a NULL value when an exception occurs during parse a date or time.\
**Describe the solution you'd like**
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
贡献指南
调研方向
Look for date/time built-in functions like dayofyear() and dayofweek() in the codebase, likely in a directory like src/builtin or similar. Understand how exceptions are currently handled and where NULL returns can be inserted. Check existing tests for these functions to see the expected behavior and add new test cases for exception scenarios.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- sql
- 领域
- databases, machine-learning
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100