Add example for arrayFirstOrNull with multiple arrays

This commit is contained in:
Blargian 2024-04-10 17:53:31 +02:00
parent 6fcaeca2e6
commit c179885265

View File

@ -2280,6 +2280,18 @@ Result:
\N
```
Query:
```sql
SELECT arrayLastOrNull((x,f) -> f, [1,2,3,NULL], [0,1,0,1]);
```
Result:
```response
\N
```
## arrayLast(func, arr1, …)
Returns the last element in the `arr1` array for which `func(arr1[i], …, arrN[i])` returns something other than 0.