Skip to content
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

fix: prevent despecialization of object store methods #3506

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

wjones127
Copy link
Contributor

Adding enforcement that wrappers implement all ObjectStore methods. If they don't, then the specialized implementations in the base ObjectStore could be bypasses, causing key optimizations to be missed out on.

I didn't see any real cases here, but adding this to be cautious. delete_stream() a common one we might worry about it, but it seems like tracing store already had this.

@github-actions github-actions bot added the bug Something isn't working label Mar 4, 2025
@wjones127 wjones127 requested a review from westonpace March 4, 2025 19:25
Copy link
Contributor

@westonpace westonpace left a comment

Choose a reason for hiding this comment

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

Nice trick with #[deny(clippy::missing_trait_methods)] 👍

@wjones127 wjones127 merged commit 5d1c84f into lancedb:main Mar 4, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants