[Improvement](like) Change like function to batch call (#13314)

This commit is contained in:
Gabriel
2022-10-16 16:18:22 +08:00
committed by GitHub
parent 632670a49c
commit 1d5ba9cbcc
7 changed files with 496 additions and 325 deletions

View File

@ -60,10 +60,6 @@ TEST(FunctionLikeTest, like) {
check_function<DataTypeUInt8, true>(func_name, const_pattern_input_types,
const_pattern_dataset);
}
// pattern is not constant value
InputTypeSet input_types = {TypeIndex::String, TypeIndex::String};
check_function<DataTypeUInt8, true>(func_name, input_types, data_set);
}
TEST(FunctionLikeTest, regexp) {
@ -100,10 +96,6 @@ TEST(FunctionLikeTest, regexp) {
check_function<DataTypeUInt8, true>(func_name, const_pattern_input_types,
const_pattern_dataset);
}
// pattern is not constant value
InputTypeSet input_types = {TypeIndex::String, TypeIndex::String};
check_function<DataTypeUInt8, true>(func_name, input_types, data_set);
}
TEST(FunctionLikeTest, regexp_extract) {
@ -143,10 +135,6 @@ TEST(FunctionLikeTest, regexp_extract) {
check_function<DataTypeString, true>(func_name, const_pattern_input_types,
const_pattern_dataset);
}
// pattern is not constant value
InputTypeSet input_types = {TypeIndex::String, TypeIndex::String, TypeIndex::Int64};
check_function<DataTypeString, true>(func_name, input_types, data_set);
}
TEST(FunctionLikeTest, regexp_replace) {
@ -177,10 +165,6 @@ TEST(FunctionLikeTest, regexp_replace) {
check_function<DataTypeString, true>(func_name, const_pattern_input_types,
const_pattern_dataset);
}
// pattern is not constant value
InputTypeSet input_types = {TypeIndex::String, TypeIndex::String, TypeIndex::String};
check_function<DataTypeString, true>(func_name, input_types, data_set);
}
} // namespace doris::vectorized