Skip to content
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

expression: implement vectorized evaluation for builtinSleepSig #14070

Closed
2 changes: 1 addition & 1 deletion expression/builtin_miscellaneous_vec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (g *sleepTimeGener) gen() interface{} {
if rand.Float64() < g.nullRation {
return nil
}
return math.Floor(rand.Float64() * 10)
return math.Floor(rand.Float64())
Copy link
Contributor

@SunRunAway SunRunAway Dec 24, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if rand.Float64() < 0.5 {
    return 0
}
return 0.1

}

var vecBuiltinMiscellaneousCases = map[string][]vecExprBenchCase{
Expand Down