4paradigm / 4paradigm/OpenMLDB

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

Đang mở
#883 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
C++
Star
1.7k
Fork
331
Merge trung bình
12 ngày 12 giờ
Pull request đã merge (30 ngày)
1

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
sql
Lĩnh vực
databases, machine-learning
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.