4paradigm / 4paradigm/OpenMLDB

built-in-function: Support returning a null instead of returning zero when data/time functions come across with an exception

Aperta
#883 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
C++
Stelle
1.7k
Fork
331
Merge medio
12g 12h
PR unite (30g)
1

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
sql
Ambito
databases, machine-learning
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.