morrySnow commented on code in PR #1864: URL: https://github.com/apache/doris-website/pull/1864#discussion_r1924770002
########## docs/sql-manual/sql-functions/scalar-functions/array-functions/array-enumerate.md: ########## @@ -24,25 +24,41 @@ specific language governing permissions and limitations under the License. --> +## Description +Returns array sub item indexes e.g. [1, 2, 3, …, length (arr) ] -## array_enumerate - -array_enumerate - -### description -#### Syntax - -`ARRAY<T> array_enumerate(ARRAY<T> arr)` +## Syntax +```sql +ARRAY_ENUMERATE(ARRAY<T> arr) Review Comment: 1. 去掉参数类型 2. 参数用尖括号包裹 ```suggestion ARRAY_ENUMERATE(<arr>) ``` ########## docs/sql-manual/sql-functions/scalar-functions/array-functions/array-enumerate.md: ########## @@ -24,25 +24,41 @@ specific language governing permissions and limitations under the License. --> +## Description +Returns array sub item indexes e.g. [1, 2, 3, …, length (arr) ] -## array_enumerate - -array_enumerate - -### description -#### Syntax - -`ARRAY<T> array_enumerate(ARRAY<T> arr)` +## Syntax +```sql +ARRAY_ENUMERATE(ARRAY<T> arr) +``` -Returns array sub item indexes eg. [1, 2, 3, …, length (arr) ] +## Parameters +| Parameter | Description | +|---|---| +| `<arr>` | The array that returns array sub item indexes | -### example +## Return Value +Returns an array. Review Comment: 这里需要介绍返回值的含义 ########## docs/sql-manual/sql-functions/scalar-functions/array-functions/array-exists.md: ########## @@ -24,36 +24,50 @@ specific language governing permissions and limitations under the License. --> -## array_exists +## Description +Use an optional lambda expression as an input parameter to perform corresponding expression calculations on the internal data of other input ARRAY parameters. Returns 1 when the calculation returns something other than 0; otherwise returns 0. +There are one or more parameters input in the lambda expression, which must be consistent with the number of input array columns later. Legal scalar functions can be executed in lambda, aggregate functions, etc. are not supported. -array_exists(lambda,array1,array2....) -array_exists(array1) +When lambda expression is not used as a parameter, array1 is used as the calculation result. -### description -#### Syntax +## Syntax ```sql -BOOLEAN array_exists(lambda, ARRAY<T> arr1, ARRAY<T> arr2, ... ) -BOOLEAN array_exists(ARRAY<T> arr) +ARRAY_EXISTS([lambda,] <arr1> [, <arr2> , ...] ) Review Comment: ```suggestion ARRAY_EXISTS([ <lambda>, ] <arr1> [, <arr2> , ...] ) ``` -- 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