[RFC] feat(tables): Add Storage Location and Storage Location Updates#516
Draft
mkuchenbecker wants to merge 8 commits intolinkedin:mainfrom
Draft
[RFC] feat(tables): Add Storage Location and Storage Location Updates#516mkuchenbecker wants to merge 8 commits intolinkedin:mainfrom
mkuchenbecker wants to merge 8 commits intolinkedin:mainfrom
Conversation
Add PATCH /v1/databases/{db}/tables/{tbl}/storageLocation endpoint
to swap the active Iceberg metadata.location for a table. Includes
schema for storage_location and table_storage_location HTS tables,
StorageLocationRepository integration, auto-registration of initial
storage location on table create/update, and mock controller tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reorder updateStorageLocation to persist the table-storage-location association before committing the Iceberg metadata location swap. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add HouseTables StorageLocation CRUD controller, JPA entities, and service layer. Add StorageLocationRepository in internalcatalog for cross-service HTTP calls. Wire auto-allocation of storage locations on table create/update in OpenHouseTablesApiHandler, and include e2e tests for the StorageLocation controller. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
mkuchenbecker
commented
Mar 30, 2026
| } | ||
| ``` | ||
|
|
||
| ### Step 5: Migrate [locked] |
Collaborator
Author
There was a problem hiding this comment.
Comment to link to. The proposal is we manage storage locations with pure SQL based on properties of the table and storage
mkuchenbecker
commented
Mar 30, 2026
| @@ -0,0 +1,434 @@ | |||
| # Openhouse Table Location Update and Rollback | |||
Collaborator
Author
There was a problem hiding this comment.
Comment to link to.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tables may need to be occasionally balanced across paths, and when doing so you want to update the location of a table safely. For example in S3, you may need to balance across prefixes over time depending on the data layout of a bucket, or balance across physical HDFS instances.
The PR contains a 450 line markdown demo as well as docker and shell script changes to run the demo.
Main actual changes:
2 - Is handled by allocating the storage location and then making a commit at the destination.
Summary
Issue] Briefly discuss the summary of the changes made in this
pull request in 2-3 lines.
Changes
For all the boxes checked, please include additional details of the changes made in this pull request.
Testing Done
For all the boxes checked, include a detailed description of the testing done for the changes made in this pull request.
Additional Information
For all the boxes checked, include additional details of the changes made in this pull request.