You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the value of "max_capacity" is one of [[], 'a', (), -1, 4097], an error will be reported like the maximum capacity specified for a Array should be in (0, 4096].
But now the error message has been removed.
[2024-04-16 14:49:46 - DEBUG - ci_test]: (api_request) : [FieldSchema] args: ['int_array', <DataType.ARRAY: 22>, ''], kwargs: {'element_type': <DataType.INT64: 5>, 'max_capacity': (), 'is_primary': False} (api_request.py:62)
[2024-04-16 14:49:46 - ERROR - ci_test]: Traceback (most recent call last):
File "/Users/zilliz/nico/milvus/tests/python_client/utils/api_request.py", line 32, in inner_wrapper
res = func(*args, **_kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/zilliz/nico/milvus/tests/python_client/utils/api_request.py", line 63, in api_request
return func(*arg, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/Users/zilliz/virtual-environment/milvus/lib/python3.11/site-packages/pymilvus/orm/schema.py", line 328, in __init__
self._parse_type_params()
File "/Users/zilliz/virtual-environment/milvus/lib/python3.11/site-packages/pymilvus/orm/schema.py", line 358, in _parse_type_params
self._type_params[k] = int(self._kwargs[k])
^^^^^^^^^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'tuple'
(api_request.py:45)
[2024-04-16 14:49:46 - ERROR - ci_test]: (api_response) : int() argument must be a string, a bytes-like object or a real number, not 'tuple' (api_request.py:46)
- 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
The text was updated successfully, but these errors were encountered:
The same situation of max_length:
test_collection.py::TestCollectionARRAY::test_collection_string_array_max_length_invalid
test_collection.py::TestCollectionARRAY::test_collection_array_field_no_capacity
Is there an existing issue for this?
Describe the bug
When the value of "max_capacity" is one of [[], 'a', (), -1, 4097], an error will be reported like
the maximum capacity specified for a Array should be in (0, 4096]
.But now the error message has been removed.
The error message should be improved.
Expected Behavior
The error message should be improved.
Steps/Code To Reproduce behavior
Environment details
Anything else?
No response
The text was updated successfully, but these errors were encountered: