Skip to content

Implement Clone for local and memory stores#653

Merged
crepererum merged 1 commit intoapache:mainfrom
DoumanAsh:clone_non_cloud_stores
Mar 11, 2026
Merged

Implement Clone for local and memory stores#653
crepererum merged 1 commit intoapache:mainfrom
DoumanAsh:clone_non_cloud_stores

Conversation

@DoumanAsh
Copy link
Copy Markdown
Contributor

@DoumanAsh DoumanAsh commented Mar 4, 2026

These stores already use Arc internally and there is little reason not to provide benefit of Clone similar to cloud stores and enable parity with these

Which issue does this PR close?

Sorry, no issue, it feels rather minor issue.

Cloud based stores provide Clone impl which means InMemory and LocalFileSystem are not good stubbing substitute as they lack Clone implementation
Hence this PR adds Clone derive which will impose clone-ability requirement on these stores

What changes are included in this PR?

Add Clone derive on InMemory and LocalFileSystem stores

Are there any user-facing changes?

No functional changes except adding Clone onto InMemory and LocalFileSystem

These stores already use Arc internally and there is little reason not to provide benefit of Clone similar to cloud stores and enable parity with these
Copy link
Copy Markdown
Contributor

@crepererum crepererum left a comment

Choose a reason for hiding this comment

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

thanks

@crepererum crepererum merged commit ca15c63 into apache:main Mar 11, 2026
9 checks passed
@DoumanAsh DoumanAsh deleted the clone_non_cloud_stores branch March 11, 2026 18:24
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