Skip to content

Support AddCollectionStructField interface#1883

Open
yhmo wants to merge 1 commit into
milvus-io:masterfrom
yhmo:ma
Open

Support AddCollectionStructField interface#1883
yhmo wants to merge 1 commit into
milvus-io:masterfrom
yhmo:ma

Conversation

@yhmo
Copy link
Copy Markdown
Contributor

@yhmo yhmo commented Jun 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings June 2, 2026 02:19
@sre-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yhmo

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

The pull request process is described here

Details 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

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds client + request support for Milvus “AddCollectionStructField” (adding a struct/struct-array field to an existing collection), including schema (de)serialization updates and unit tests to validate the produced gRPC request.

Changes:

  • Introduces AddCollectionStructFieldReq request model and exposes MilvusClientV2#addCollectionStructField(...).
  • Implements CollectionService#addCollectionStructField(...) and extends SchemaUtils struct-field conversions to include nullable and typeParams.
  • Adds/updates tests to verify request building and builder-class verification.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
sdk-core/src/test/java/io/milvus/v2/service/collection/CollectionTest.java Adds unit tests validating the gRPC request for adding a struct field and parameter validation behavior.
sdk-core/src/test/java/io/milvus/v2/client/MilvusClientV2Test.java Extends builder/getter-setter verification to include the new request class.
sdk-core/src/test/java/io/milvus/v2/BaseTest.java Mocks the new gRPC stub method for tests.
sdk-core/src/main/java/io/milvus/v2/utils/SchemaUtils.java Adds nullable + typeParams support for struct field schema conversion to/from gRPC.
sdk-core/src/main/java/io/milvus/v2/service/collection/request/CreateCollectionReq.java Extends struct field schema model with nullable + typeParams.
sdk-core/src/main/java/io/milvus/v2/service/collection/request/AddCollectionStructFieldReq.java New request type for adding a struct field to an existing collection.
sdk-core/src/main/java/io/milvus/v2/service/collection/CollectionService.java Implements the RPC call for addCollectionStructField.
sdk-core/src/main/java/io/milvus/v2/client/MilvusClientV2.java Exposes the new public client method.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sdk-core/src/main/java/io/milvus/v2/utils/SchemaUtils.java
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.

Signed-off-by: yhmo <yihua.mo@zilliz.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated no new comments.

@mergify mergify Bot added the ci-passed label Jun 2, 2026
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