amorynan commented on code in PR #2671:
URL: https://github.com/apache/doris-website/pull/2671#discussion_r2244269968
##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-contains.md:
##########
@@ -1,50 +1,214 @@
---
{
- "title": "ARRAY_CONTAINS",
- "language": "zh-CN"
+ "title": "ARRAY_CONTAINS",
+ "language": "zh-CN"
}
---
## array_contains
-array_contains
+<version since="1.2.0">
+
+
+</version>
## 描述
+检查数组中是否包含指定的值。如果找到则返回 true,否则返回 false。如果数组为 NULL,则返回 NULL。
+
## 语法
-`BOOLEAN array_contains(ARRAY<T> arr, T value)`
+```sql
+array_contains(ARRAY<T> arr, T value)
+```
+
+### 参数
+
+- `arr`:ARRAY<T> 类型,要检查的数组。支持列名或常量值。
+- `value`:T 类型,要查找的值。类型必须与数组元素类型兼容。
+
+**T 支持的类型:**
+- 数值类型:TINYINT、SMALLINT、INT、BIGINT、LARGEINT、FLOAT、DOUBLE、DECIMAL
Review Comment:
最好是写白名单
--
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]