yiguolei commented on code in PR #2755:
URL: https://github.com/apache/doris-website/pull/2755#discussion_r2283869795


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/table-functions/posexplode-outer.md:
##########
@@ -0,0 +1,92 @@
+---
+{
+"title": "POSEXPLODE_OUTER",
+"language": "zh-CN"
+}
+---
+
+## 描述
+`posexplode_outer` 表函数,将 `<array>` 列展开成多行, 并且增加一列标明位置的列,组成 
[`STRUCT`](../../basic-element/sql-data-types/semi-structured/STRUCT.md) 类型返回。
+需配合 Lateral View 使用, 可以支持多个 Lateral view。
+`posexplode_outer` 和 [`posexplode`](./posexplode.md) 区别主要在于空值处理。
+
+## 语法
+```sql
+POSEXPLODE_OUTER(<array>)
+```
+
+## 参数
+- `<array>` 数组类型,不支持 NULL 参数。
+
+## 返回值
+- 返回一列多行的 STRUCT 数据,STRUCT 由 2 列组成:`[0, n)` 的整数列和由 `<array>` 所有元素组成的列。
+- 如果 `<array>` 为 NULL 或者为空数组(元素个数为 0),返回 0 行数据。
+

Review Comment:
   得写明,pos 是从0 开始



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