We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2bacb3 commit 1fcb0d9Copy full SHA for 1fcb0d9
src/Functions/FunctionTopKFilter.cpp
@@ -29,10 +29,10 @@ class FunctionTopKFilter: public IFunction
29
if (!threshold_tracker_)
30
throw Exception(ErrorCodes::LOGICAL_ERROR, "FunctionTopKFilter got NULL threshold_tracker");
31
32
- String comparator = "less";
+ String comparator = "lessOrEquals";
33
34
if (threshold_tracker->getDirection() == -1) /// DESC
35
- comparator = "greater";
+ comparator = "greaterOrEquals";
36
auto context = Context::getGlobalContextInstance();
37
compare_function = FunctionFactory::instance().get(comparator, context);
38
direction = threshold_tracker_->getDirection();
0 commit comments