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 5f3f9d5 commit 0bfbe47Copy full SHA for 0bfbe47
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/PreOptimizerTests.java
@@ -27,6 +27,7 @@
27
import org.elasticsearch.xpack.esql.plan.logical.Eval;
28
import org.elasticsearch.xpack.esql.plan.logical.Filter;
29
30
+import java.nio.charset.StandardCharsets;
31
import java.util.ArrayList;
32
import java.util.List;
33
@@ -180,7 +181,7 @@ public TextEmbeddingResults<?> embeddingResults(String input) {
180
181
}
182
183
private byte[] bytes(String input) {
- return input.getBytes();
184
+ return input.getBytes(StandardCharsets.UTF_8);
185
186
187
public float[] embedding(String input) {
0 commit comments