-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add sqlness tests for some promql function #1838
Conversation
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
-- {test="two samples"} 0 | ||
-- {test="three samples"} 0 | ||
-- {test="uneven samples"} 0 | ||
-- tql eval (60, 60, '1s') quantile_over_time(0, data[1m]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
result set is unstable, waiting for CeresDB/sqlness#57
@@ -885,8 +886,8 @@ impl PromPlanner { | |||
ScalarFunc::Udf(PredictLinear::scalar_udf(t_expr)) | |||
} | |||
"holt_winters" => { | |||
let sf_exp = match other_input_exprs.get(0) { | |||
Some(DfExpr::Literal(ScalarValue::Float64(Some(sf)))) => *sf, | |||
let sf_exp = match other_input_exprs.pop_front() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for improving it. Looks much better than .get(0)
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
@@ Coverage Diff @@
## develop #1838 +/- ##
===========================================
- Coverage 86.53% 86.23% -0.31%
===========================================
Files 588 588
Lines 95684 95724 +40
===========================================
- Hits 82804 82550 -254
- Misses 12880 13174 +294 |
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* correct range manipulate exec fmt text Signed-off-by: Ruihang Xia <[email protected]> * fix partition requirement Signed-off-by: Ruihang Xia <[email protected]> * fix udf signature Signed-off-by: Ruihang Xia <[email protected]> * finilise Signed-off-by: Ruihang Xia <[email protected]> * ignore unstable ordered result Signed-off-by: Ruihang Xia <[email protected]> * add nan value test Signed-off-by: Ruihang Xia <[email protected]> --------- Signed-off-by: Ruihang Xia <[email protected]>
I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
Add sqlness tests for
Other test are not ported due to
TEMPLATE
interceptor CeresDB/sqlness#51Checklist
Refer to a related PR or issue link (optional)