Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR]: <ParamError: (code=1, message=UnSupported element type: None for Array field: color_coord)> #2700

Open
1 task done
wfcola opened this issue Jul 5, 2024 · 0 comments

Comments

@wfcola
Copy link

wfcola commented Jul 5, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Issue

I am trying to use Array as the type of the field following the https://milvus.io/docs/array_data_type.md. But the code throw the paramerror after run.

Here is the trace.

File "/home/lab/.local/lib/python3.10/site-packages/pymilvus/milvus_client/milvus_client.py", line 219, in insert
res = conn.insert_rows(
File "/home/lab/.local/lib/python3.10/site-packages/pymilvus/decorators.py", line 147, in handler
raise e from e
File "/home/lab/.local/lib/python3.10/site-packages/pymilvus/decorators.py", line 143, in handler
return func(*args, **kwargs)
File "/home/lab/.local/lib/python3.10/site-packages/pymilvus/decorators.py", line 182, in handler
return func(self, *args, **kwargs)
File "/home/lab/.local/lib/python3.10/site-packages/pymilvus/decorators.py", line 122, in handler
raise e from e
File "/home/lab/.local/lib/python3.10/site-packages/pymilvus/decorators.py", line 87, in handler
return func(*args, **kwargs)
File "/home/lab/.local/lib/python3.10/site-packages/pymilvus/client/grpc_handler.py", line 492, in insert_rows
request = self._prepare_row_insert_request(
File "/home/lab/.local/lib/python3.10/site-packages/pymilvus/client/grpc_handler.py", line 518, in _prepare_row_insert_request
return Prepare.row_insert_param(
File "/home/lab/.local/lib/python3.10/site-packages/pymilvus/client/prepare.py", line 437, in row_insert_param
return cls._parse_row_request(request, fields_info, enable_dynamic, entities)
File "/home/lab/.local/lib/python3.10/site-packages/pymilvus/client/prepare.py", line 387, in _parse_row_request
entity_helper.pack_field_value_to_field_data(v, field_data, field_info)
File "/home/lab/.local/lib/python3.10/site-packages/pymilvus/client/entity_helper.py", line 322, in pack_field_value_to_field_data
field_data.scalars.array_data.data.append(convert_to_array(field_value, field_info))
File "/home/lab/.local/lib/python3.10/site-packages/pymilvus/client/entity_helper.py", line 232, in convert_to_array
raise ParamError(
pymilvus.exceptions.ParamError: <ParamError: (code=1, message=UnSupported element type: None for Array field: color_coord)>

Suggestion

No response

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant