4paradigm / 4paradigm/OpenMLDB
support `format` argument for `date`, `datediff`, `timestamp`, `unix_timestamp`, etc
- 主要语言
- C++
- 星标
- 1.7k
- 派生
- 331
- 平均合并
- 12 天 12 小时
- 30 天内合并 PR
- 1
描述
**Describe the feature you'd like**
A clear and concise description of what you want to happen.
Currently we only support the following fixed three formats:
- yyyy-mm-dd
- yyyymmdd
- yyyy-mm-dd hh:mm:ss
We may allow user to provide a `format` argument to these functions.
**Additional context**
Add any other context or screenshots about the feature request here.
贡献指南
调研方向
Look for the date, datediff, timestamp, unix_timestamp function implementations in the codebase, likely in SQL function modules. Understand the current fixed format parsing and output logic. The task is to extend these functions to accept a format argument, requiring changes to function signatures, parsing, and possibly validation. Check existing tests for these functions to see how they are currently tested and add new tests for the format argument.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp, sql
- 领域
- backend, databases
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100