[Function](cbrt)Add cbrt function for doris (#12523)
Add cbrt function for doris
This commit is contained in:
@ -108,6 +108,17 @@ TEST(MathFunctionTest, sqrt_test) {
|
||||
check_function<DataTypeFloat64, true>(func_name, input_types, data_set);
|
||||
}
|
||||
|
||||
TEST(MathFunctionTest, cbrt_test) {
|
||||
std::string func_name = "cbrt";
|
||||
|
||||
InputTypeSet input_types = {TypeIndex::Float64};
|
||||
|
||||
DataSet data_set = {
|
||||
{{0.0}, 0.0}, {{2.0}, 1.2599210498948734}, {{8.0}, 2.0}, {{-1000.0}, -10.0}};
|
||||
|
||||
check_function<DataTypeFloat64, true>(func_name, input_types, data_set);
|
||||
}
|
||||
|
||||
TEST(MathFunctionTest, tan_test) {
|
||||
std::string func_name = "tan"; //tan(x)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user