We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5467d2 commit 54e6407Copy full SHA for 54e6407
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/rules/logical/PushLimitToKnn.java
@@ -16,6 +16,10 @@
16
import org.elasticsearch.xpack.esql.plan.logical.Limit;
17
import org.elasticsearch.xpack.esql.plan.logical.LogicalPlan;
18
19
+/**
20
+ * Traverses the logical plan and pushes down the limit to the KNN function(s) in filter expressions, so KNN can use
21
+ * it to set k if not specified.
22
+ */
23
public class PushLimitToKnn extends OptimizerRules.ParameterizedOptimizerRule<Limit, LogicalOptimizerContext> {
24
25
public PushLimitToKnn() {
0 commit comments