Skip to content

Commit 15e9d05

Browse files
authored
Fix VectorSimilarityFunctionsIT (#133206)
1 parent 1e48709 commit 15e9d05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public Block eval(Page page) {
116116
}
117117
}
118118
if (dimensions == 0) {
119-
return context.blockFactory().newConstantFloatBlockWith(0F, 0);
119+
return context.blockFactory().newConstantNullBlock(positionCount);
120120
}
121121

122122
float[] leftScratch = new float[dimensions];

0 commit comments

Comments
 (0)