@@ -336,7 +336,7 @@ _Alias of [empty](#empty)._
336336
337337## array_except
338338
339- Returns an array of elements that appear in the first array but not in the second.
339+ Returns an array containing elements from the first array that are not present in the second array .
340340
341341``` sql
342342array_except(array1, array2)
@@ -441,7 +441,7 @@ SELECT array_has_all([1, 2, 3, 4], [2, 3]) AS array_has_all
441441
442442## array_has_any
443443
444- Returns ` true ` if any elements exist in both arrays.
444+ Returns ` true ` if at least one element appears in both arrays.
445445
446446``` sql
447447array_has_any(array, sub- array)
@@ -479,7 +479,7 @@ _Alias of [array_position](#array_position)._
479479
480480## array_intersect
481481
482- Returns an array of elements in the intersection of ** array1** and ** array2** .
482+ Returns an array containing only the elements that appear in both ** array1** and ** array2** .
483483
484484``` sql
485485array_intersect(array1, array2)
@@ -1107,7 +1107,8 @@ SELECT array_replace_n(['John', 'Jane', 'James', 'John', 'John'], 'John', 'Joe',
11071107## array_resize
11081108
11091109Resizes the list to contain size elements. Initializes new elements with value
1110- or empty if value is not set.
1110+ Resizes the array to the specified size. If expanding, fills new elements with the
1111+ specified value (or _ NULL_ if not provided). If shrinking, truncates excess elements.
11111112
11121113``` sql
11131114array_resize(array, size, value)
@@ -1269,7 +1270,7 @@ SELECT
12691270
12701271## array_to_string
12711272
1272- Converts an array to string-based representation with a specified delimiter.
1273+ Converts an array to a string by joining all elements with the specified delimiter.
12731274
12741275``` sql
12751276array_to_string(array, delimiter[, null_string])
@@ -1318,7 +1319,8 @@ SELECT array_to_string([[1,2,3,4,5,NULL,7,8,NULL]], '-', '?') AS array_to_string
13181319## array_union
13191320
13201321Returns an array of elements that are present in both arrays (all elements from
1321- both arrays) with out duplicates.
1322+ Returns an array containing all unique elements from both input arrays, with
1323+ duplicates removed.
13221324
13231325``` sql
13241326array_union(array1, array2)
@@ -1414,12 +1416,12 @@ SELECT empty(['apple']) AS empty
14141416
14151417## flatten
14161418
1417- Converts an array of arrays to a flat array.
1419+ Flattens nested arrays into a single-level array.
14181420
1419- - Applies to any depth of nested arrays
1420- - Does not change arrays that are already flat
1421+ - Recursively flattens arrays at any depth of nesting
1422+ - Returns unchanged if the array is already flat
14211423
1422- The flattened array contains all the elements from all source arrays.
1424+ The result contains all elements from all nested arrays in a single flat array .
14231425
14241426``` sql
14251427flatten(array)
0 commit comments