You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/user-guide/sql/scalar_functions.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3234,6 +3234,8 @@ _Alias of [current_date](#current_date)._
3234
3234
3235
3235
## Array Functions
3236
3236
3237
+
-[any_match](#any_match)
3238
+
-[array_any_match](#array_any_match)
3237
3239
-[array_any_value](#array_any_value)
3238
3240
-[array_append](#array_append)
3239
3241
-[array_cat](#array_cat)
@@ -3285,6 +3287,7 @@ _Alias of [current_date](#current_date)._
3285
3287
-[empty](#empty)
3286
3288
-[flatten](#flatten)
3287
3289
-[generate_series](#generate_series)
3290
+
-[list_any_match](#list_any_match)
3288
3291
-[list_any_value](#list_any_value)
3289
3292
-[list_append](#list_append)
3290
3293
-[list_cat](#list_cat)
@@ -3335,6 +3338,39 @@ _Alias of [current_date](#current_date)._
3335
3338
-[string_to_array](#string_to_array)
3336
3339
-[string_to_list](#string_to_list)
3337
3340
3341
+
### `any_match`
3342
+
3343
+
_Alias of [array_any_match](#array_any_match)._
3344
+
3345
+
### `array_any_match`
3346
+
3347
+
Returns whether any elements of an array match the given predicate. Returns true if one or more elements match, false if none match (including empty arrays), and null if the predicate returns null for some elements and false for all others.
3348
+
3349
+
```sql
3350
+
any_match(array, predicate)
3351
+
```
3352
+
3353
+
#### Arguments
3354
+
3355
+
-**array**: Array expression. Can be a constant, column, or function, and any combination of array operators.
3356
+
-**predicate**: Lambda predicate that returns a boolean
0 commit comments