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: src/Functions/array/arrayIntersect.cpp
+10-19Lines changed: 10 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -766,41 +766,35 @@ using ArraySymmetricDifference = FunctionArrayIntersect<ArrayModeSymmetricDiffer
766
766
767
767
REGISTER_FUNCTION(ArrayIntersect)
768
768
{
769
-
FunctionDocumentation::Description intersect_description = "Takes multiple arrays and returns an array with elements which are present in **all** source arrays. The result contains only unique values.";
769
+
FunctionDocumentation::Description intersect_description = "Takes multiple arrays and returns an array with elements which are present in all source arrays. The result contains only unique values.";
FunctionDocumentation::Arguments intersect_argument = {{"xN", "N arrays from which to make the new array. [`Array`](/sql-reference/data-types/array)."}};
772
772
FunctionDocumentation::ReturnedValue intersect_returned_value = "Returns an array with distinct elements that are present in all N arrays. [`Array`](/sql-reference/data-types/array).";
Takes multiple arrays and returns an array which contains all elements that are present in one of the source arrays.
791
-
The result contains only unique values.
792
-
)";
788
+
FunctionDocumentation::Description union_description = "Takes multiple arrays and returns an array which contains all elements that are present in one of the source arrays.The result contains only unique values.";
FunctionDocumentation::Arguments union_argument = {{"xN", "N arrays from which to make the new array. [`Array`](/sql-reference/data-types/array)."}};
795
791
FunctionDocumentation::ReturnedValue union_returned_value = "Returns an array with distinct elements from the source arrays. [`Array`](/sql-reference/data-types/array).";
Takes multiple arrays and returns an array with elements that are not present in all source arrays. The result contains only unique values.
808
+
FunctionDocumentation::Description symdiff_description = R"(Takes multiple arrays and returns an array with elements that are not present in all source arrays. The result contains only unique values.
816
809
817
810
:::note
818
811
The symmetric difference of _more than two sets_ is [mathematically defined](https://en.wikipedia.org/wiki/Symmetric_difference#n-ary_symmetric_difference)
@@ -822,13 +815,11 @@ In contrast, function `arraySymmetricDifference` simply returns the set of input
FunctionDocumentation::Arguments symdiff_argument = {{"xN", "N arrays from which to make the new array. [`Array`](/sql-reference/data-types/array)."}};
825
-
FunctionDocumentation::ReturnedValue symdiff_returned_value = "Returns an array distinct elements not present in all source arrays. [`Array`](/sql-reference/data-types/array).";
FunctionDocumentation::ReturnedValue symdiff_returned_value = "Returns an array of distinct elements not present in all source arrays. [`Array`](/sql-reference/data-types/array).";
{"x", "Array for which to count the number of unique elements. [`Array`](/sql-reference/data-types/array)."},
340
-
{"...yN (optional)", "Additional same-size arrays used to count the number of unique tuples of elements at corresponding positions in multiple arrays. [`Array`](/sql-reference/data-types/array)."}
341
-
};
342
-
FunctionDocumentation::ReturnedValue returned_value = "For a single arguments returns the number of unique elements. For multiple arguments returns the number of unique tuples made from elements at corresponding positions across the arrays. [`UInt32`](/sql-reference/data-types/int-uint)";
"Array for which to count the number of unique elements. [`Array`](/sql-reference/data-types/array)."
341
+
},
342
+
{
343
+
"...yN (optional)",
344
+
"Additional same-size arrays used to count the number of unique tuples of elements at corresponding positions in multiple arrays. [`Array`](/sql-reference/data-types/array)."
0 commit comments