linrrzqqq commented on code in PR #58665:
URL: https://github.com/apache/doris/pull/58665#discussion_r2584867718
##########
be/test/vec/function/function_time_test.cpp:
##########
@@ -1230,6 +1230,41 @@ TEST(VTimestampFunctionsTest, minute_second_add_v2_test)
{
}
}
+TEST(VTimestampFunctionsTest, second_microsecond_add_v2_test) {
+ std::string func_name = "second_microsecond_add";
+
+ InputTypeSet input_types = {PrimitiveType::TYPE_DATETIMEV2,
+ Consted {PrimitiveType::TYPE_STRING}};
+
+ {
+ DataSet data_set = {
+ {{std::string("2020-10-23 00:00:11.123456"),
std::string("1.1")},
+ std::string("2020-10-23 00:00:12.223456")},
+ };
+
+ static_cast<void>(
+ check_function<DataTypeDateTimeV2, true>(func_name,
input_types, data_set));
Review Comment:
```suggestion
static_cast<void>(
check_function<DataTypeDateTimeV2, true>(func_name,
input_types, data_set, 6));
```
--
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]