[feature-wip] (array-type) function concat_ws support array (#10749)
Issue #10052 function concat_ws support array
This commit is contained in:
@ -387,6 +387,23 @@ TEST(function_string_test, function_concat_ws_test) {
|
||||
|
||||
check_function<DataTypeString, true>(func_name, input_types, data_set);
|
||||
};
|
||||
|
||||
{
|
||||
InputTypeSet input_types = {TypeIndex::String, TypeIndex::Array, TypeIndex::String};
|
||||
|
||||
Array vec1 = {Field("", 0), Field("", 0), Field("", 0)};
|
||||
Array vec2 = {Field("123", 3), Field("456", 3), Field("789", 3)};
|
||||
Array vec3 = {Field("", 0), Field("?", 1), Field("", 0)};
|
||||
Array vec4 = {Field("abc", 3), Field("", 0), Field("def", 3)};
|
||||
Array vec5 = {Field("abc", 3), Field("def", 3), Field("ghi", 3)};
|
||||
DataSet data_set = {{{std::string("-"), vec1}, std::string("--")},
|
||||
{{std::string(""), vec2}, std::string("123456789")},
|
||||
{{std::string("-"), vec3}, std::string("-?-")},
|
||||
{{Null(), vec4}, Null()},
|
||||
{{std::string("-"), vec5}, std::string("abc-def-ghi")}};
|
||||
|
||||
check_function<DataTypeString, true>(func_name, input_types, data_set);
|
||||
};
|
||||
}
|
||||
|
||||
TEST(function_string_test, function_null_or_empty_test) {
|
||||
|
||||
Reference in New Issue
Block a user