Skip to content

feat(admin-api): add single-table restore endpoint#1824

Merged
shiyasmohd merged 1 commit intomainfrom
shiyasmohd/restore-by-table
Feb 23, 2026
Merged

feat(admin-api): add single-table restore endpoint#1824
shiyasmohd merged 1 commit intomainfrom
shiyasmohd/restore-by-table

Conversation

@shiyasmohd
Copy link
Contributor

@shiyasmohd shiyasmohd commented Feb 20, 2026

Summary

  • Add POST /datasets/{namespace}/{name}/versions/{revision}/tables/{table_name}/restore endpoint for restoring a single table.
  • Support two restore modes: discover latest revision from object storage (UUID heuristic), or activate a specific revision by location_id
  • Extend ampctl dataset restore CLI with --table and --location-id flags
  • Add integration tests
  • Add docs

CLI usage

# Discover latest revision from storage
ampctl dataset restore my_ns/my_dataset@1.0.0 --table blocks

# Activate a specific revision
ampctl dataset restore my_ns/my_dataset@1.0.0 --table blocks --location-id 42

@shiyasmohd shiyasmohd self-assigned this Feb 20, 2026
@shiyasmohd shiyasmohd requested a review from LNSD February 20, 2026 14:53
Copy link
Contributor

@LNSD LNSD left a comment

Choose a reason for hiding this comment

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

LGTM ✅

@shiyasmohd shiyasmohd merged commit 87adbf4 into main Feb 23, 2026
7 checks passed
@shiyasmohd shiyasmohd deleted the shiyasmohd/restore-by-table branch February 23, 2026 08:54
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.

2 participants