4paradigm / 4paradigm/OpenMLDB

support `format` argument for `date`, `datediff`, `timestamp`, `unix_timestamp`, etc

未关闭
#2,848 1 条评论 0 个 reaction 已指派 2 人 已被 @aceforeverd 认领 在 GitHub 查看
execute-engine udf
主要语言
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

把新 issue 发到你的邮箱

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