github-actions[bot] commented on code in PR #33243:
URL: https://github.com/apache/doris/pull/33243#discussion_r1596554346
##########
be/test/vec/function/function_string_test.cpp:
##########
@@ -2720,6 +2720,104 @@ TEST(function_string_test, function_uuid_test) {
}
}
+TEST(function_string_test, function_overlay_test) {
+ std::string func_name = "overlay";
+ {
+ InputTypeSet input_types = {
+ TypeIndex::String,
+ TypeIndex::Int32,
+ TypeIndex::Int32,
+ TypeIndex::String,
+ };
+ DataSet data_set = {
+ {{
+ Null(),
+ INT(7),
+ INT(5),
+ VARCHAR("9090"),
+ },
+ {Null()}},
+ {{
+ VARCHAR("Test"),
+ Null(),
+ INT(5),
+ VARCHAR("9090"),
+ },
+ {Null()}},
+ {{
+ VARCHAR("Test"),
+ INT(7),
+ Null(),
+ VARCHAR("9090"),
+ },
+ {Null()}},
+ {{
+ VARCHAR("Test"),
+ INT(7),
+ INT(5),
+ Null(),
+ },
+ {Null()}},
+ {{VARCHAR("http://www.baidu.com:9090"), INT(22), INT(4),
VARCHAR("")},
+ {VARCHAR("http://www.baidu.com:")}},
+ {{VARCHAR("aaaaa"), INT(0), INT(50), VARCHAR("bbbbb")},
{VARCHAR("aaaaa")}},
+ {{VARCHAR("aaaaa"), INT(2), INT(3), VARCHAR("bbbbb")},
{VARCHAR("abbbbba")}},
+ {{VARCHAR("aaaaa"), INT(6), INT(2), VARCHAR("bbbbb")},
{VARCHAR("aaaaa")}},
+ {{VARCHAR("aaaaa"), INT(-10), INT(2), VARCHAR("bbbbb")},
{VARCHAR("aaaaa")}},
+ {{VARCHAR("aaaaa"), INT(2), INT(-1), VARCHAR("bbbbb")},
{VARCHAR("abbbbb")}}};
+ static_cast<void>(check_function<DataTypeString, true>(func_name,
input_types, data_set));
+ }
+ {
+ InputTypeSet input_types = {
+ TypeIndex::String,
+ Consted {TypeIndex::Int32},
+ Consted {TypeIndex::Int32},
+ Consted {TypeIndex::String},
+ };
+ DataSet data_set = {
+ {{
+ Null(),
+ INT(7),
+ INT(5),
+ VARCHAR("9090"),
+ },
+ {Null()}},
+ {{
+ VARCHAR("Test"),
+ Null(),
+ INT(5),
Review Comment:
warning: function 'TEST' exceeds recommended size/complexity thresholds
[readability-function-size]
```cpp
^
```
<details>
<summary>Additional context</summary>
**be/test/vec/function/function_string_test.cpp:2787:** 96 lines including
whitespace and comments (threshold 80)
```cpp
^
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]