Skip to content

Commit 043824d

Browse files
authored
Update arrayCompact.cpp
1 parent af57f3a commit 043824d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Functions/array/arrayCompact.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,13 @@ using FunctionArrayCompact = FunctionArrayMapped<ArrayCompactImpl, NameArrayComp
161161

162162
REGISTER_FUNCTION(ArrayCompact)
163163
{
164-
FunctionDocumentation::Description description = "Removes consecutive duplicate elements from an array. The order of result values is determined by the order in the source array.";
164+
FunctionDocumentation::Description description = "Removes consecutive duplicate elements from an array, including `null` values. The order of values in the resulting array is determined by the order in the source array.";
165165
FunctionDocumentation::Syntax syntax = "arrayCompact(arr)";
166166
FunctionDocumentation::Arguments arguments = {
167167
{"arr", "An array to remove duplicates from. [`Array(T)`](/sql-reference/data-types/array)"}
168168
};
169169
FunctionDocumentation::ReturnedValue returned_value = "Returns an array without duplicate values. [`Array(T)`](/sql-reference/data-types/array).";
170-
FunctionDocumentation::Examples examples = {{"Usage example", "SELECT arrayCompact([1, 1, nan, nan, 2, 3, 3, 3]);", "[1,nan,nan,2,3]"}};
170+
FunctionDocumentation::Examples examples = {{"Usage example", "SELECT arrayCompact([1, 1, nan, nan, 2, 3, 3, 3]);", "[1,nan,2,3]"}};
171171
FunctionDocumentation::IntroducedIn introduced_in = {20, 1};
172172
FunctionDocumentation::Category category = FunctionDocumentation::Category::Array;
173173
FunctionDocumentation documentation = {description, syntax, arguments, returned_value, examples, introduced_in, category};

0 commit comments

Comments
 (0)