Co-authored-by: Zhuomin(Charming) Liu <lzmhhh123@gmail.com> Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
26 lines
609 B
Go
26 lines
609 B
Go
package aggfuncs_test
|
|
|
|
import (
|
|
. "github.com/pingcap/check"
|
|
"github.com/pingcap/parser/ast"
|
|
"github.com/pingcap/parser/mysql"
|
|
)
|
|
|
|
func (s *testSuite) TestMergePartialResult4Stddevsamp(c *C) {
|
|
tests := []aggTest{
|
|
buildAggTester(ast.AggFuncStddevSamp, mysql.TypeDouble, 5, 1.5811388300841898, 1, 1.407885953173359),
|
|
}
|
|
for _, test := range tests {
|
|
s.testMergePartialResult(c, test)
|
|
}
|
|
}
|
|
|
|
func (s *testSuite) TestStddevsamp(c *C) {
|
|
tests := []aggTest{
|
|
buildAggTester(ast.AggFuncStddevSamp, mysql.TypeDouble, 5, nil, 1.5811388300841898),
|
|
}
|
|
for _, test := range tests {
|
|
s.testAggFunc(c, test)
|
|
}
|
|
}
|