Skip to content

Commit

Permalink
fix: add description for field schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nianliuu committed Oct 29, 2024
1 parent ca633f6 commit ead93c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/io/milvus/v2/utils/SchemaUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public static CreateCollectionReq.CollectionSchema convertFromGrpcCollectionSche
private static CreateCollectionReq.FieldSchema convertFromGrpcFieldSchema(FieldSchema fieldSchema) {
CreateCollectionReq.FieldSchema schema = CreateCollectionReq.FieldSchema.builder()
.name(fieldSchema.getName())
.description(fieldSchema.getDescription())
.dataType(io.milvus.v2.common.DataType.valueOf(fieldSchema.getDataType().name()))
.isPrimaryKey(fieldSchema.getIsPrimaryKey())
.autoID(fieldSchema.getAutoID())
Expand Down

0 comments on commit ead93c9

Please sign in to comment.