diff --git a/examples/main/java/io/milvus/v2/Float16VectorExample.java b/examples/main/java/io/milvus/v2/Float16VectorExample.java index 32831092b..dc095dce4 100644 --- a/examples/main/java/io/milvus/v2/Float16VectorExample.java +++ b/examples/main/java/io/milvus/v2/Float16VectorExample.java @@ -121,7 +121,7 @@ private static void prepareData(int count) { ByteBuffer buf1 = CommonUtils.generateFloat16Vector(VECTOR_DIM, false); row.add(FP16_VECTOR_FIELD, gson.toJsonTree(buf1.array())); ByteBuffer buf2 = CommonUtils.generateFloat16Vector(VECTOR_DIM, true); - row.add(BF16_VECTOR_FIELD, gson.toJsonTree(buf1.array())); + row.add(BF16_VECTOR_FIELD, gson.toJsonTree(buf2.array())); rows.add(row); } @@ -217,4 +217,4 @@ public static void main(String[] args) { client.close(); } -} \ No newline at end of file +}