zclllyybb commented on code in PR #51475:
URL: https://github.com/apache/doris/pull/51475#discussion_r2128662825


##########
be/src/vec/functions/function_date_or_datetime_computation.h:
##########
@@ -1207,4 +1209,34 @@ class FunctionNextDay : public IFunction {
     }
 };
 
+class FunctionTime : public IFunction {
+public:
+    static constexpr auto name = "time";
+    static FunctionPtr create() { return std::make_shared<FunctionTime>(); }
+    String get_name() const override { return name; }
+    size_t get_number_of_arguments() const override { return 1; }
+
+    DataTypePtr get_return_type_impl(const DataTypes& arguments) const 
override {
+        return std::make_shared<typename 
PrimitiveTypeTraits<TYPE_TIMEV2>::DataType>();

Review Comment:
   why not just `std::make_shared<DataTypeTimeV2>`?



-- 
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]

Reply via email to