ZhangYu0123 commented on code in PR #18028:
URL: https://github.com/apache/doris/pull/18028#discussion_r1145563985


##########
be/src/vec/functions/array/function_array_with_constant.cpp:
##########
@@ -79,8 +85,29 @@ class FunctionArrayWithConstant : public IFunction {
     }
 };
 
+struct NameArrayWithConstant {
+    static constexpr auto name = "array_with_constant";
+
+    static void get_param_position_from_arguments(const ColumnNumbers& 
arguments, size_t& num_position,
+                                                  size_t& value_position) {
+        num_position = arguments[0];
+        value_position = arguments[1];
+    }
+};
+
+struct NameArrayRepeat {
+    static constexpr auto name = "array_repeat";
+
+    static void get_param_position_from_arguments(const ColumnNumbers& 
arguments, size_t& num_position,
+                                                  size_t& value_position) {
+        value_position = arguments[0];
+        num_position = arguments[1];
+    }
+};
+
 void register_function_array_with_constant(SimpleFunctionFactory& factory) {

Review Comment:
   they are not same function because of the params position.
   i didn’t find register_alias how to change the params position.
   array_with_constant(n,T)
   array_repeat(T,n)
   
   



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