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

Support Partition key #1427

Merged
merged 1 commit into from
May 15, 2023
Merged

Support Partition key #1427

merged 1 commit into from
May 15, 2023

Conversation

xige-16
Copy link
Contributor

@xige-16 xige-16 commented May 11, 2023

use case:

from pymilvus import CollectionSchema, FieldSchema, DataType

book_id = FieldSchema(name="book_id", dtype=DataType.INT64, is_primary=True)

book_name = FieldSchema(name="book_name", dtype=DataType.VARCHAR, max_length=200, is_partition_key=true)

book_intro = FieldSchema(name="book_intro", dtype=DataType.FLOAT_VECTOR, dim=2)

default_schema = CollectionSchema(fields=[book_id, book_name, book_intro],description="Test book search")

collection = Collection(name="hello_milvus", schema=default_schema, shards_num=1, partitions=100)

Signed-off-by: xige-16 <[email protected]>
@longjiquan
Copy link
Contributor

/lgtm

@longjiquan
Copy link
Contributor

/approve

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: longjiquan, xige-16

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot sre-ci-robot merged commit 0994731 into milvus-io:master May 15, 2023
@longjiquan
Copy link
Contributor

cherry-pick of #1425

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

Successfully merging this pull request may close these issues.

3 participants