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

[FEATURE]: Support new DataType: Array #1707

Closed
1 task done
xiaocai2333 opened this issue Sep 18, 2023 · 1 comment
Closed
1 task done

[FEATURE]: Support new DataType: Array #1707

xiaocai2333 opened this issue Sep 18, 2023 · 1 comment
Assignees
Milestone

Comments

@xiaocai2333
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Anything else?

Support Array DataType for milvus.

  1. There is an element_type field to represent the type of the actual element.
  2. There is an upper limit on the number of elements max_capacity. If element type is VARCHAR, it must contain max_length.
    pymilvus example:
pk_field = FieldSchema(name="id", dtype=DataType.INT64, is_primary=True, auto_id=False)
int_array_field = FieldSchema(name="int_array", dtype=DataType.ARRAY, element_type=DataType.INT64, max_capacity=100)
str_array_field = FieldSchema(name="string_array", dtype=DataType.ARRAY, element_type=DataType.VARCHAR,
                              max_capacity=100, max_length=100)
float_vector = FieldSchema(name="float_vector", dtype=DataType.FLOAT_VECTOR, dim=dim)
schema = CollectionSchema(fields=[pk_field, int_array_field, str_array_field, float_vector],
                          enable_dynamic_field=True)
@xiaocai2333
Copy link
Contributor Author

/assign @xiaocai2333

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

2 participants