Skip to content

Commit 6e4c1a9

Browse files
committed
Fix test for node info
1 parent 1083764 commit 6e4c1a9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/EsqlFunctionRegistry.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ private static FunctionDefinition[][] snapshotFunctions() {
478478
def(LastOverTime.class, uni(LastOverTime::new), "last_over_time"),
479479
def(FirstOverTime.class, uni(FirstOverTime::new), "first_over_time"),
480480
def(Term.class, bi(Term::new), "term"),
481-
def(Knn.class, Knn::new, "knn"),
481+
def(Knn.class, quad(Knn::new), "knn"),
482482
def(StGeohash.class, StGeohash::new, "st_geohash"),
483483
def(StGeohashToLong.class, StGeohashToLong::new, "st_geohash_to_long"),
484484
def(StGeohashToString.class, StGeohashToString::new, "st_geohash_to_string"),
@@ -1204,4 +1204,8 @@ private static <T extends Function> TernaryBuilder<T> tri(TernaryBuilder<T> func
12041204
return function;
12051205
}
12061206

1207+
private static <T extends Function> QuaternaryBuilder<T> quad(QuaternaryBuilder<T> function) {
1208+
return function;
1209+
}
1210+
12071211
}

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/vector/Knn.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public Knn(
146146
this(source, field, query, k, options, null, List.of());
147147
}
148148

149-
private Knn(
149+
public Knn(
150150
Source source,
151151
Expression field,
152152
Expression query,

0 commit comments

Comments
 (0)