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

[draft]feat: support alter collection field properties #34963

Closed

Conversation

PowderLi
Copy link
Contributor

issue: #34646

@sre-ci-robot sre-ci-robot added the size/L Denotes a PR that changes 100-499 lines. label Jul 24, 2024
@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: PowderLi
To complete the pull request process, please assign yanliang567 after the PR has been reviewed.
You can assign the PR to them by writing /assign @yanliang567 in a comment when ready.

The full list of commands accepted by this bot can be found 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

@mergify mergify bot added the needs-dco DCO is missing in this pull request. label Jul 24, 2024
Copy link
Contributor

mergify bot commented Jul 24, 2024

@PowderLi Thanks for your contribution. Please submit with DCO, see the contributing guide https://github.com/milvus-io/milvus/blob/master/CONTRIBUTING.md#developer-certificate-of-origin-dco.

Copy link
Contributor

mergify bot commented Jul 24, 2024

@PowderLi

Invalid PR Title Format Detected

Your PR submission does not adhere to our required standards. To ensure clarity and consistency, please meet the following criteria:

  1. Title Format: The PR title must begin with one of these prefixes:
  • feat: for introducing a new feature.
  • fix: for bug fixes.
  • enhance: for improvements to existing functionality.
  • test: for add tests to existing functionality.
  • doc: for modifying documentation.
  • auto: for the pull request from bot.
  1. Description Requirement: The PR must include a non-empty description, detailing the changes and their impact.

Required Title Structure:

[Type]: [Description of the PR]

Where Type is one of feat, fix, enhance, test or doc.

Example:

enhance: improve search performance significantly 

Please review and update your PR to comply with these guidelines.

Copy link
Contributor

mergify bot commented Jul 24, 2024

@PowderLi E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@PowderLi PowderLi force-pushed the master-alter-collection-field branch from 80602ad to 9d54c67 Compare July 25, 2024 02:34
Copy link
Contributor

mergify bot commented Jul 25, 2024

@PowderLi E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@PowderLi PowderLi force-pushed the master-alter-collection-field branch from 9d54c67 to 182415a Compare July 25, 2024 04:22
@mergify mergify bot added dco-passed DCO check passed. and removed needs-dco DCO is missing in this pull request. labels Jul 25, 2024
Copy link
Contributor

mergify bot commented Jul 25, 2024

@PowderLi E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@PowderLi PowderLi force-pushed the master-alter-collection-field branch from 182415a to 94f5e03 Compare July 25, 2024 09:09
@@ -1218,13 +1218,25 @@ func (node *Proxy) ShowCollections(ctx context.Context, request *milvuspb.ShowCo
}

func (node *Proxy) AlterCollection(ctx context.Context, request *milvuspb.AlterCollectionRequest) (*commonpb.Status, error) {
return node.alterCollectionOrField(ctx, "AlterCollection", &milvuspb.AlterCollectionRequest{
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be simplified to node.alterCollectionOrField(ctx, "AlterCollection", request).

@@ -1250,6 +1250,17 @@ func (c *Core) ShowCollections(ctx context.Context, in *milvuspb.ShowCollections
}

func (c *Core) AlterCollection(ctx context.Context, in *milvuspb.AlterCollectionRequest) (*commonpb.Status, error) {
return c.AlterCollectionOrField(ctx, &milvuspb.AlterCollectionRequest{
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be simplified to c.AlterCollectionOrField(ctx, in).

@longjiquan
Copy link
Contributor

lgtm

Signed-off-by: PowderLi <min.li@zilliz.com>
@PowderLi PowderLi force-pushed the master-alter-collection-field branch from 94f5e03 to cff7038 Compare July 29, 2024 15:14
Copy link
Contributor

mergify bot commented Jul 29, 2024

@PowderLi E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Copy link

codecov bot commented Jul 29, 2024

Codecov Report

Attention: Patch coverage is 87.09677% with 8 lines in your changes missing coverage. Please review.

Project coverage is 80.99%. Comparing base (86322e0) to head (cff7038).
Report is 2 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #34963      +/-   ##
==========================================
+ Coverage   71.81%   80.99%   +9.17%     
==========================================
  Files        1184     1189       +5     
  Lines      143767   143468     -299     
==========================================
+ Hits       103246   116199   +12953     
+ Misses      36107    22851   -13256     
- Partials     4414     4418       +4     
Files Coverage Δ
internal/datacoord/services.go 84.48% <100.00%> (+0.01%) ⬆️
internal/distributed/rootcoord/client/client.go 93.93% <100.00%> (-1.81%) ⬇️
internal/distributed/rootcoord/service.go 81.25% <100.00%> (-0.64%) ⬇️
internal/proxy/task.go 90.43% <100.00%> (ø)
internal/rootcoord/broker.go 92.10% <100.00%> (ø)
internal/rootcoord/root_coord.go 91.66% <100.00%> (+0.03%) ⬆️
internal/rootcoord/step.go 85.41% <100.00%> (ø)
internal/distributed/proxy/service.go 83.73% <0.00%> (-0.24%) ⬇️
internal/proxy/impl.go 86.23% <80.00%> (-0.02%) ⬇️
internal/rootcoord/alter_collection_task.go 96.72% <90.00%> (-3.28%) ⬇️
... and 1 more

... and 287 files with indirect coverage changes

@PowderLi PowderLi closed this Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-passed DCO check passed. do-not-merge/invalid-pr-format size/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants