4paradigm / 4paradigm/OpenMLDB
udf test for `unix_timestamp("")` might fail
- 主要语言
- C++
- 星标
- 1.7k
- 派生
- 331
- 平均合并
- 12 天 12 小时
- 30 天内合并 PR
- 1
描述
```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.
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp
- 领域
- testing
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 40/100