HappenLee commented on code in PR #30823:
URL: https://github.com/apache/doris/pull/30823#discussion_r1502031661


##########
be/src/vec/functions/array/function_array_range.cpp:
##########
@@ -84,11 +86,48 @@ class FunctionArrayRange : public IFunction {
     }
 };
 
+template <typename SourceDataType, typename TimeUnitOrVoid = void>
 struct RangeImplUtil {
+    using DataTypeName = std::conditional_t<std::is_same_v<SourceDataType, 
Int32>, DataTypeInt32,
+                                            DataTypeDateTimeV2>;
+    static DataTypePtr get_data_type_name() { return 
std::make_shared<DataTypeName>(); }

Review Comment:
   `get_data_type()`
   no need name



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to