milvus-io / milvus

A cloud-native vector database, storage for next generation AI applications
https://milvus.io
Apache License 2.0
27.58k stars 2.66k forks source link

[Bug]: [GoSDK] Create binary vector collection with invalid dim returns no error #33229

Closed ThreadDao closed 1 week ago

ThreadDao commented 1 week ago

Is there an existing issue for this?

Environment

- Milvus version: master-20240520-555df49d-amd64
- Deployment mode(standalone or cluster):
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2): go client v2.0.0-20240521081339-017fd7bc25de
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

create binary collection with invalid dim succ, and describe collection show that dim is 128

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

congqixia commented 1 week ago

the test code used common.DefaultDim which is valid

entity.NewField().WithName(common.DefaultBinaryVecFieldName).WithDataType(entity.FieldTypeBinaryVector).WithDim(common.DefaultDim),
congqixia commented 1 week ago

/unassign /assign @ThreadDao

ThreadDao commented 1 week ago

mistake