Skip to content

Conversation

@leekeiabstraction
Copy link
Contributor

Purpose

Linked issue: close #207

Brief change log

  • Add Partition related models
  • Add wiring for Partition related Admin APIs
  • Added integration test

Tests

Added UTs and IT

@leekeiabstraction
Copy link
Contributor Author

@luoyuxia @fresh-borzoni Would appreciate your reviews here!

Copy link

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

Implements client-side Admin APIs and supporting types/RPC plumbing for listing, creating, and dropping table partitions (closes #207).

Changes:

  • Added partition metadata models (PartitionSpec, PartitionInfo, etc.) and exported them via metadata.
  • Wired new Admin RPC requests/messages + API keys for ListPartitionInfos, CreatePartition, and DropPartition.
  • Added an integration test covering the new partition Admin APIs.

Reviewed changes

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

Show a summary per file
File Description
crates/fluss/tests/integration/admin.rs Adds integration coverage for partition list/create/drop APIs.
crates/fluss/src/client/admin.rs Exposes partition Admin APIs on FlussAdmin.
crates/fluss/src/metadata/mod.rs Registers and re-exports new partition metadata module.
crates/fluss/src/metadata/partition.rs Introduces partition-related metadata types and unit tests.
crates/fluss/src/metadata/table.rs Extends PhysicalTablePath to include an optional partition name and Display formatting.
crates/fluss/src/proto/fluss_api.proto Adds protobuf messages for partition spec/info and partition Admin RPCs.
crates/fluss/src/rpc/api_key.rs Adds API keys and numeric mappings for the new partition Admin RPCs.
crates/fluss/src/rpc/message/mod.rs Registers and re-exports new partition RPC message modules.
crates/fluss/src/rpc/message/list_partition_infos.rs Implements request/response plumbing for listing partitions (with optional spec filter).
crates/fluss/src/rpc/message/create_partition.rs Implements request/response plumbing for creating partitions.
crates/fluss/src/rpc/message/drop_partition.rs Implements request/response plumbing for dropping partitions.

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

Copy link
Contributor

@luoyuxia luoyuxia left a comment

Choose a reason for hiding this comment

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

@leekeiabstraction Thanks for the pr. LGTM! But copilot left minor comments, please have a look and decide to take copilot comment or not. Once you fix them, I'll merge.

Copy link
Contributor

@fresh-borzoni fresh-borzoni left a comment

Choose a reason for hiding this comment

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

@leekeiabstraction Thanks for the PR.
Left comment

@leekeiabstraction
Copy link
Contributor Author

@fresh-borzoni @luoyuxia Thank you for the reviews. I've addressed all copilot comments. PTAL!

Copy link
Contributor

@fresh-borzoni fresh-borzoni left a comment

Choose a reason for hiding this comment

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

@leekeiabstraction Thank you, left another comments, I think we have some leftovers
PTAL

@leekeiabstraction
Copy link
Contributor Author

@fresh-borzoni TY for the comments. Addressed them, PTAL!

Copy link
Contributor

@fresh-borzoni fresh-borzoni left a comment

Choose a reason for hiding this comment

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

@leekeiabstraction Thank you, LGTM

Copy link
Contributor

@luoyuxia luoyuxia left a comment

Choose a reason for hiding this comment

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

@leekeiabstraction Thnaks. LGTM!

@luoyuxia luoyuxia merged commit fdd5296 into apache:main Jan 25, 2026
13 checks passed
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.

Implement List/Create/Drop Partitions in Admin API

3 participants