4paradigm / 4paradigm/OpenMLDB

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

オープン
#2,998 コメント 5 件 リアクション 0 件 担当者 2 名 @aceforeverd が担当を希望しています GitHub で見る
bug good first issue test
主要言語
C++
スター
1.7k
フォーク
331
平均マージ
12日 12時間
マージ済み PR(30日)
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。