Skip to content

feat: add soft-drop flag to DropRequest#317

Merged
v0y4g3r merged 5 commits intomainfrom
feat/add-soft-drop
Apr 29, 2026
Merged

feat: add soft-drop flag to DropRequest#317
v0y4g3r merged 5 commits intomainfrom
feat/add-soft-drop

Conversation

@v0y4g3r
Copy link
Copy Markdown
Contributor

@v0y4g3r v0y4g3r commented Apr 28, 2026

I hereby agree to the terms of the GreptimeDB CLA.

Refer to a related PR or issue link (optional)

What's changed and what's your intention?

As title

Checklist

  • I have written the necessary comments.
  • I have added the necessary unit tests and integration tests.

Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>
Copilot AI review requested due to automatic review settings April 28, 2026 09:45
Copy link
Copy Markdown
Contributor

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 a new soft_drop boolean flag to greptime.v1.region.DropRequest so callers can request a “mark dropped without physical deletion” behavior via the Region server API.

Changes:

  • Extend DropRequest in proto/greptime/v1/region/server.proto with bool soft_drop = 5.
  • Regenerate protobuf outputs for Rust, Go, Java, and C++ to include the new field and accessors.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/generated/greptime.v1.region.rs Rust prost-generated DropRequest gains soft_drop field.
proto/greptime/v1/region/server.proto Source proto adds soft_drop field and documentation.
java/src/main/java/io/greptime/v1/region/Server.java Java protobuf output updated with softDrop field/accessors and serialization support.
go/greptime/v1/region/server.pb.go Go protobuf output updated with SoftDrop field and getter.
c++/greptime/v1/region/server.pb.h C++ protobuf header updated with soft_drop APIs and storage.
c++/greptime/v1/region/server.pb.cc C++ protobuf implementation updated for parse/serialize/merge/size with soft_drop.

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

Comment thread proto/greptime/v1/region/server.proto Outdated
Comment thread java/src/main/java/io/greptime/v1/region/Server.java Outdated
v0y4g3r and others added 2 commits April 28, 2026 03:30
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>
@v0y4g3r v0y4g3r force-pushed the feat/add-soft-drop branch from 85d2dbb to 091f253 Compare April 28, 2026 10:52
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>
@v0y4g3r v0y4g3r enabled auto-merge (squash) April 28, 2026 11:49
Add `check-protoc` target to ensure local `protoc` matches version `3.21.12`. This prevents generating inconsistent grpc service descriptors due to compiler version mismatches.
- Updated `Makefile`

Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>
@v0y4g3r v0y4g3r merged commit a107830 into main Apr 29, 2026
7 checks passed
@v0y4g3r v0y4g3r deleted the feat/add-soft-drop branch April 29, 2026 08:29
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

Successfully merging this pull request may close these issues.

4 participants