openhouse icon indicating copy to clipboard operation
openhouse copied to clipboard

[RFC] feat(tables): Add Storage Location and Storage Location Updates

Open mkuchenbecker opened this issue 8 months ago • 0 comments

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:

  1. StorageLocation entity that identifies a particular path. A table may contain N storage locations. Note: operations such as Orphaned File Deletion and Stats Collection need updates to maintain these directories.
  2. A table may update its storage location.

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

  • [x] Client-facing API Changes
  • [x] Internal API Changes
  • [ ] Bug Fixes
  • [x] New Features
  • [ ] Performance Improvements
  • [ ] Code Style
  • [ ] Refactoring
  • [ ] Documentation
  • [ ] Tests

For all the boxes checked, please include additional details of the changes made in this pull request.

Testing Done

  • [x] Manually Tested on local docker setup. Please include commands ran, and their output.
  • [ ] Added new tests for the changes made.
  • [ ] Updated existing tests to reflect the changes made.
  • [ ] No tests added or updated. Please explain why. If unsure, please feel free to ask for help.
  • [ ] Some other form of testing like staging or soak time in production. Please explain.

For all the boxes checked, include a detailed description of the testing done for the changes made in this pull request.

Additional Information

  • [ ] Breaking Changes
  • [ ] Deprecations
  • [ ] Large PR broken into smaller PRs, and PR plan linked in the description.

For all the boxes checked, include additional details of the changes made in this pull request.

mkuchenbecker avatar Mar 27 '26 18:03 mkuchenbecker