Browse Source

Prepare for 2.3.5 (#832)

Signed-off-by: yhmo <yihua.mo@zilliz.com>
groot 1 year ago
parent
commit
c9a49bde1c

+ 18 - 1
CHANGELOG.md

@@ -1,6 +1,23 @@
 # Changelog
 
-## milvus-sdk-java 2.3.4 (TBD)
+## milvus-sdk-java 2.3.5 (2024-03-29)
+
+### Feature
+
+- New MilvusClientV2 class to encapsulate RPC interfaces for good usability
+- Support ListAlias interface
+- Provide a BulkWriter tool for easily generating data files for import() interface
+
+### Improvement
+
+- Replace grpc-netty to grpc-netty-shared
+- Support creating index without specifying metricType and indexType
+- Support searching without specifying metricType
+- Fix a crash bug of SearchResutsWrapper when primary key is varchar type
+- Fix a bug of retry that doesn't return server errors
+- Fix some vulnerabilities
+
+## milvus-sdk-java 2.3.4 (2024-01-02)
 
 ### Improvement
 

+ 4 - 4
README.md

@@ -19,7 +19,7 @@ The following table shows compatibilities between Milvus and Java SDK.
 |     2.1      |   2.1.0-beta4    |
 |     2.2.0 ~ 2.2.8      |  2.2.0 ~ 2.2.5   |
 |     >= 2.2.9      |  2.2.7 ~ 2.2.15  |
-|     2.3.x      |      2.3.4       |
+|     2.3.x      |      2.3.5       |
 
 ### Install Java SDK
 
@@ -31,20 +31,20 @@ You can use **Apache Maven** or **Gradle** add Milvus SDK to your project.
         <dependency>
             <groupId>io.milvus</groupId>
             <artifactId>milvus-sdk-java</artifactId>
-            <version>2.3.4</version>
+            <version>2.3.5</version>
         </dependency>
        ```
 
    - Gradle/Groovy
 
         ```groovy
-        implementation 'io.milvus:milvus-sdk-java:2.3.4'
+        implementation 'io.milvus:milvus-sdk-java:2.3.5'
         ```
 
    - Gradle/Kotlin
 
         ```kotlin
-        implementation("io.milvus:milvus-sdk-java:2.3.4")
+        implementation("io.milvus:milvus-sdk-java:2.3.5")
         ```
         
 ### Examples

+ 2 - 2
examples/pom.xml

@@ -25,7 +25,7 @@
 
     <groupId>io.milvus</groupId>
     <artifactId>milvus-sdk-java-examples</artifactId>
-    <version>2.3.4</version>
+    <version>2.3.5</version>
 
     <build>
         <plugins>
@@ -64,7 +64,7 @@
         <dependency>
             <groupId>io.milvus</groupId>
             <artifactId>milvus-sdk-java</artifactId>
-            <version>2.3.4</version>
+            <version>2.3.5</version>
         </dependency>
         <dependency>
             <groupId>com.google.code.gson</groupId>

+ 1 - 1
pom.xml

@@ -25,7 +25,7 @@
 
     <groupId>io.milvus</groupId>
     <artifactId>milvus-sdk-java</artifactId>
-    <version>2.3.4</version>
+    <version>2.3.5</version>
     <packaging>jar</packaging>
 
     <name>io.milvus:milvus-sdk-java</name>

+ 3 - 4
src/main/java/io/milvus/param/collection/FieldType.java

@@ -316,10 +316,9 @@ public class FieldType {
                 if (elementType == DataType.String) {
                     throw new ParamException("String type is not supported, use Varchar instead");
                 }
-                if (elementType == DataType.None || elementType == DataType.Array
-                        || elementType == DataType.JSON || elementType == DataType.String
-                        || elementType == DataType.FloatVector || elementType == DataType.Float16Vector
-                        || elementType == DataType.BinaryVector || elementType == DataType.UNRECOGNIZED) {
+                if (elementType == DataType.None || elementType == DataType.Array || elementType == DataType.JSON
+                        || elementType == DataType.FloatVector || elementType == DataType.BinaryVector
+                        || elementType == DataType.UNRECOGNIZED) {
                     throw new ParamException("Unsupported element type");
                 }
 

+ 1 - 3
src/main/java/io/milvus/v2/common/DataType.java

@@ -20,9 +20,7 @@ public enum DataType {
     JSON(23),
 
     BinaryVector(100),
-    FloatVector(101),
-    Float16Vector(102),
-    BFloat16Vector(103);
+    FloatVector(101);
 
     private final int code;
     DataType(int code) {

+ 1 - 1
src/main/milvus-proto

@@ -1 +1 @@
-Subproject commit 9ed8fb405005c2a2cdb10d30276d8bec9334b023
+Subproject commit 48a7beb5e71d07716a378ec9c8edc34a9caf268c

+ 1 - 1
src/test/java/io/milvus/client/MilvusClientDockerTest.java

@@ -69,7 +69,7 @@ class MilvusClientDockerTest {
     private static final int dimension = 128;
 
     @Container
-    private static final MilvusContainer milvus = new MilvusContainer("milvusdb/milvus:v2.3.10");
+    private static final MilvusContainer milvus = new MilvusContainer("milvusdb/milvus:v2.3.12");
 
     @BeforeAll
     public static void setUp() {