pymilvus
pymilvus copied to clipboard
[Bug]: The error message of unmatched collection dim during insert is not user-friendly
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
Before, collection dim is 128, insert data dim is 127, error message is like:
Collection field dim is 128, but entities field dim is 127.
But error message is
the length(254000) of float data should divide the dim(128)
It is not good, and i can not understand.
Expected Behavior
improve the error message
Steps/Code To Reproduce behavior
test_partition.py::TestPartitionOperations::test_partition_upsert_mismatched_data
test_insert.py::TestInsertParams::test_insert_dim_not_match
test_partition.py::TestPartitionOperations::test_partition_insert_mismatched_dimensions
Environment details
- Hardware/Softward conditions (OS, CPU, GPU, Memory):
- Method of installation (Docker, or from source):
- Milvus version (v0.3.1, or v0.4.0):
- Milvus configuration (Settings you made in `server_config.yaml`):
Anything else?
No response