Skip to content

Commit b5e9772

Browse files
committed
Fix build
1 parent d97080f commit b5e9772

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/Functions/array/arrayLevenshtein.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ ColumnPtr FunctionArrayLevenshtein<Similarity>::execute(std::vector<const Column
572572

573573
REGISTER_FUNCTION(ArrayLevenshtein)
574574
{
575-
FunctionDocumentation::Description descriptio_arrayLevDis = "Calculates the Levenshtein distance for two arrays.";
575+
FunctionDocumentation::Description description_arrayLevDis = "Calculates the Levenshtein distance for two arrays.";
576576
FunctionDocumentation::Syntax syntax_arrayLevDis = "arrayLevenshteinDistance(from, to)";
577577
FunctionDocumentation::Arguments arguments_arrayLevDis = {
578578
{"from", "The first array. [`Array(T)`](/sql-reference/data-types/array)."},
@@ -593,7 +593,7 @@ REGISTER_FUNCTION(ArrayLevenshtein)
593593
syntax_arrayLevDis,
594594
arguments_arrayLevDis,
595595
returned_value_arrayLevDis,
596-
examples_arrayLevDis,
596+
example_arrayLevDis,
597597
introduced_in_arrayLevDis,
598598
category_arrayLevDis
599599
};
@@ -607,8 +607,8 @@ The number of elements for the array and its weights should match.
607607
FunctionDocumentation::Syntax syntax_arrayLevDisW = "arrayLevenshteinDistanceWeighted(from, to, from_weights, to_weights)";
608608
FunctionDocumentation::Arguments arguments_arrayLevDisW = {
609609
{"from", "first array. [`Array(T)`](/sql-reference/data-types/array)."},
610-
{"to", "second array. [`Array(T)`](/sql-reference/data-types/array)."}
611-
{"from_weights", "weights for the first array. [`Array(Float32)`](/sql-reference/data-types/array)."}
610+
{"to", "second array. [`Array(T)`](/sql-reference/data-types/array)."},
611+
{"from_weights", "weights for the first array. [`Array(Float32)`](/sql-reference/data-types/array)."},
612612
{"to_weights", "weights for the second array. [`Array(Float32)`](/sql-reference/data-types/array)."},
613613
};
614614
FunctionDocumentation::ReturnedValue returned_value_arrayLevDisW = "Levenshtein distance between the first and the second arrays with custom weights for each element. [`Float64`](/sql-reference/data-types/float).";
@@ -636,13 +636,13 @@ The number of elements for the array and its weights should match.
636636
FunctionDocumentation::Description description_arraySim = R"(
637637
Calculates the similarity of two arrays from `0` to `1` based on weighted Levenshtein distance.
638638
)";
639-
FunctionDocumentation::Syntax_arraySim = "arraySimilarity(from, to, from_weights, to_weights)";
639+
FunctionDocumentation::Syntax syntax_arraySim = "arraySimilarity(from, to, from_weights, to_weights)";
640640
FunctionDocumentation::Arguments arguments_arraySim = {
641641
{"from", "first array"},
642642
{"to", "second array"},
643643
{"from_weights", "weights for the first array"},
644644
{"to_weights", "weights for the second array"},
645-
},
645+
};
646646
FunctionDocumentation::ReturnedValue returned_value_arraySim = "Returns the similarity between `0` and `1` of the two arrays based on the weighted Levenshtein distance. [`Float64`](/sql-reference/data-types/float).";
647647
FunctionDocumentation::Examples examples_arraySim = {
648648
{
@@ -651,7 +651,8 @@ Calculates the similarity of two arrays from `0` to `1` based on weighted Levens
651651
"0.2222222222222222"
652652
}
653653
};
654-
FunctionDocumentation::Category category = FunctionDocumentation::Category::Array;
654+
FunctionDocumentation::IntroducedIn introduced_in_arraySim = {25, 4};
655+
FunctionDocumentation::Category category_arraySim = FunctionDocumentation::Category::Array;
655656
FunctionDocumentation documentation_arraySim = {
656657
description_arraySim,
657658
syntax_arraySim,

src/Functions/array/arrayNormalizedGini.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ REGISTER_FUNCTION(NormalizedGini)
410410
};
411411
FunctionDocumentation::IntroducedIn doc_introduced_in = {25, 1};
412412
FunctionDocumentation::Category doc_category = FunctionDocumentation::Category::Array;
413-
FunctionDocumentation documentation = {description, syntax, arguments, returned_value, examples, introduced_in, category};
413+
FunctionDocumentation documentation = {doc_description, doc_syntax, doc_arguments, doc_returned_value, doc_examples, doc_introduced_in, doc_category};
414414

415415
factory.registerFunction<FunctionArrayNormalizedGini>(documentation, FunctionFactory::Case::Sensitive);
416416
}

src/Functions/array/arrayShiftRotate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ If the number of elements is negative, the array is shifted to the left.
365365
{
366366
{"Usage example", "SELECT arrayShiftRight([1,2,3,4,5,6], 2) as res;", "[0,0,1,2,3,4]"},
367367
{"Negative value of n", "SELECT arrayShiftRight([1,2,3,4,5,6], -2) as res;", "[3,4,5,6,0,0]"},
368-
{"Using a default value", "SELECT arrayShiftRight([1,2,3,4,5,6], 2, 42) as res;"}
368+
{"Using a default value", "SELECT arrayShiftRight([1,2,3,4,5,6], 2, 42) as res;", "[42,42,1,2,3,4]"}
369369
};
370370
FunctionDocumentation::IntroducedIn introduced_in_shiftright = {23, 8};
371371
FunctionDocumentation::Category category_shiftright = FunctionDocumentation::Category::Array;

0 commit comments

Comments
 (0)