Skip to content

Commit 46f21bc

Browse files
committed
Add documentation for UNNEST function
1 parent 180ac0d commit 46f21bc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/en/logs/workspaces/sql_reference.md

+10
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ The following SQL functions are supported. For Window function, see the separate
103103
| `array_position(array a, typeof_array value)` | integer | Returns the index of the first occurence of the value found in the array. |
104104
| `string_to_array(string s, string delimiter)` | array of strings | Splits the given string into an array of strings using the given delimiter. |
105105
| `array_agg(expression e)` | array of input type | Create an array by concatenating the input values. Ordering is not deterministic |
106+
| `unnest(array a)` | type of array | Expands an array into a set of rows. |
106107

107108
{{% collapse-content title="Examples" level="h3" %}}
108109

@@ -393,6 +394,15 @@ FROM (
393394
);
394395
{{< /code-block >}}
395396

397+
### `UNNEST`
398+
{{< code-block lang="sql" >}}
399+
SELECT
400+
*,
401+
UNNEST(recipients)
402+
FROM
403+
emails;
404+
{{< /code-block >}}
405+
396406
{{% /collapse-content %}}
397407

398408
## Window functions

0 commit comments

Comments
 (0)