2
0
Эх сурвалжийг харах

Fix a typo for partition key (#504)

Signed-off-by: yhmo <yihua.mo@zilliz.com>
groot 2 жил өмнө
parent
commit
9bec45b3df

+ 2 - 1
src/main/java/io/milvus/param/ParamUtils.java

@@ -512,7 +512,8 @@ public class ParamUtils {
                 .withDescription(field.getDescription())
                 .withPrimaryKey(field.getIsPrimaryKey())
                 .withAutoID(field.getAutoID())
-                .withDataType(field.getDataType());
+                .withDataType(field.getDataType())
+                .withPartitionKey(field.getIsPartitionKey());
 
         List<KeyValuePair> keyValuePairs = field.getTypeParamsList();
         keyValuePairs.forEach((kv) -> builder.addTypeParam(kv.getKey(), kv.getValue()));