Yukang-Lian commented on code in PR #17754:
URL: https://github.com/apache/doris/pull/17754#discussion_r1134902873
##########
docs/en/docs/sql-manual/sql-functions/array-functions/array_reverse_sort.md:
##########
@@ -0,0 +1,84 @@
+---
+{
+ "title": "array_reverse_sort",
+ "language": "en"
+}
+---
+
+<!--
+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_reverse_sort
+
+<version since="1.2.3">
+
+array_reverse_sort
+
+</version>
+
+### description
+
+#### Syntax
+
+```
+ARRAY<T> array_reverse_sort(ARRAY<T> arr)
+```
+
+Return the array which has been sorted in descending order. Return NULL for
NULL input.
+If the element of array is NULL, it will be placed in the last of the sorted
array.
+
+### notice
+
+`Only supported in vectorized engine`
+
+### example
+
+```
+mysql> set enable_vectorized_engine=true;
+mysql> select k1, k2, array_sort(k2) from array_test;
Review Comment:
It should be `array_reverse_sort` instead of `array_sort`.
##########
docs/zh-CN/docs/sql-manual/sql-functions/array-functions/array_reverse_sort.md:
##########
@@ -0,0 +1,84 @@
+---
+{
+ "title": "array_reverse_sort",
+ "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_reverse_sort
+
+<version since="1.2.3">
+
+array_reverse_sort
+
+</version>
+
+### description
+
+#### Syntax
+
+```
+ARRAY<T> array_reverse_sort(ARRAY<T> arr)
+```
+
+返回按降序排列后的数组,如果输入数组为NULL,则返回NULL。
+如果数组元素包含NULL, 则输出的排序数组会将NULL放在最后面。
+
+### notice
+
+`仅支持向量化引擎中使用`
+
+### example
+
+```
+mysql> set enable_vectorized_engine=true;
+mysql> select k1, k2, array_sort(k2) from array_test;
Review Comment:
ditto
--
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]