-
Notifications
You must be signed in to change notification settings - Fork 543
Add Filesystem datastore support #5892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a new FilesystemDataStore implementation that enables storing DataStore data on the local filesystem, allowing quickstart to publish a meta lake locally without requiring cloud storage (GCS/S3). This unblocks galexie meta lake support in quickstart and integration testing scenarios.
Key Changes
- Implements all DataStore interface methods (Exists, Size, GetFile, PutFile, PutFileIfNotExists, GetFileMetadata, GetFileLastModified, ListFilePaths, Close) for filesystem-based storage
- Supports optional metadata sidecar files (.metadata.json) with configurable write_metadata flag
- Integrates FilesystemDataStore into the DataStore factory pattern
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 11 comments.
| File | Description |
|---|---|
| support/datastore/filesystem.go | Core implementation of FilesystemDataStore with file I/O operations, metadata handling, and directory traversal for listing files |
| support/datastore/filesystem_test.go | Comprehensive test suite covering all DataStore operations, metadata handling, edge cases, and configuration options |
| support/datastore/datastore.go | Registers "Filesystem" type in the DataStore factory function |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
sreuland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, great docs and test coverage also!
Co-authored-by: shawn <[email protected]>
What
Add a new FilesystemDataStore implementation that satisfies the DataStore interface. Store data on the local filesystem with configurable destination_path and optional metadata sidecar files (.metadata.json). Support all DataStore operations: Exists, Size, GetFile, PutFile, PutFileIfNotExists, GetFileMetadata, GetFileLastModified, ListFilePaths, and Close.
Why
Enable quickstart to publish a meta lake locally without requiring cloud storage configuration (GCS/S3) to support integration testing with galexie with quickstart.
Related:
Close #5891
Close stellar/stellar-galexie#10
Close stellar/quickstart#835