4paradigm / 4paradigm/OpenMLDB

udf test for `unix_timestamp("")` might fail

Đang mở
#2,998 5 bình luận 0 reaction 2 người được giao Được @aceforeverd nhận Xem trên GitHub
bug good first issue test
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ả

```log
/home/runner/work/OpenMLDB/OpenMLDB/hybridse/src/udf/udf_test.h:172: Failure
Expected equality of these values:
expect
Which is: Nullable{value=1674015278, type=int64}
output
Which is: Nullable{value=1674015279, type=int64}
```

refer https://github.com/4paradigm/OpenMLDB/actions/runs/3945482097/jobs/6752411020#step:7:21561

Fail might happen due to slow execution.

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

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

Hướng nghiên cứu

The failing test is in hybridse/src/udf/udf_test.h at line 172, testing the unix_timestamp function with an empty string. The test expects a specific timestamp but gets a slightly different one, likely due to timing. Start by examining the test logic and the UDF implementation for unix_timestamp. Run the test locally to reproduce the failure, then consider mocking time or adjusting the test tolerance. 'Done' means the test passes consistently.

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

Đánh giá

Công nghệ
cpp
Lĩnh vực
testing
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
40/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.