4paradigm / 4paradigm/OpenMLDB

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

Abierto
#2,848 1 comentario 0 reacciones 2 asignados Reclamado por @aceforeverd Ver en GitHub
execute-engine udf
Lenguaje dominante
C++
Estrellas
1.7k
Forks
331
Merge medio
12 d 12 h
PR fusionados (30 d)
1

Descripción

**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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
cpp, sql
Área
backend, databases
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.