Skip to content

Commit

Permalink
add shardsNum for describeCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
nianliuu committed Jan 16, 2025
1 parent b381779 commit fe034fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class DescribeCollectionResp {
private CreateCollectionReq.CollectionSchema collectionSchema;
private Long createTime;
private ConsistencyLevel consistencyLevel;
private Integer shardsNum;
@Builder.Default
private final Map<String, String> properties = new HashMap<>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public DescribeCollectionResp convertDescCollectionResp(DescribeCollectionRespon
.primaryFieldName(response.getSchema().getFieldsList().stream().filter(FieldSchema::getIsPrimaryKey).map(FieldSchema::getName).collect(java.util.stream.Collectors.toList()).get(0))
.createTime(response.getCreatedTimestamp())
.consistencyLevel(io.milvus.v2.common.ConsistencyLevel.valueOf(response.getConsistencyLevel().name().toUpperCase()))
.shardsNum(response.getShardsNum())
.properties(properties)
.build();
return describeCollectionResp;
Expand Down

0 comments on commit fe034fa

Please sign in to comment.