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


##########
docs/zh-CN/docs/sql-manual/sql-functions/array-functions/array_sortby.md:
##########
@@ -0,0 +1,95 @@
+---
+{
+    "title": "array_sortby",
+    "language": "zh-CN"
+}
+---
+
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+  http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+## array_sortby
+
+<version since="2.0">
+
+array_sortby
+
+</version>
+
+### description
+
+#### Syntax
+
+```
+ARRAY<T> array_sortby(ARRAY<T> src,Array<T> key)
+ARRAY<T> array_sortby(lambda,array....)
+```
+
+首先将key列升序排列,然后将src列按此顺序排序后的对应列做为结果返回;
+如果输入数组src为NULL,则返回NULL。
+如果输入数组key为NULL,则直接返回src数组。
+如果输入数组key元素包含NULL, 则输出的排序数组会将NULL放在最前面。
+
+### notice
+
+`仅支持向量化引擎中使用`

Review Comment:
   do not have no vec exec engine in doris



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