[Function](cbrt)Add cbrt function for doris (#12523)

Add cbrt function for doris
This commit is contained in:
TaoZex
2022-09-12 19:58:45 +08:00
committed by GitHub
parent ecfefae715
commit c8e9a32bb2
7 changed files with 136 additions and 1 deletions

View File

@ -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)