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

Add ObjectMeta::version and GetOptions::version (#4925) #4935

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

tustvold
Copy link
Contributor

Which issue does this PR close?

Closes #4925

Rationale for this change

This adds the ability to get the version of an object

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the object-store Object Store Interface label Oct 13, 2023
@tustvold tustvold added the api-change Changes to the arrow API label Oct 13, 2023
@@ -145,6 +145,7 @@ impl ObjectStore for InMemory {
last_modified,
size: data.len(),
e_tag: None,
version: None,
Copy link
Contributor

Choose a reason for hiding this comment

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

In theory the mem backend could implement this, not sure if that would be helpful for testing (might also be a follow-up PR).

BTW: what's the expectation regarding how long versions are kept in "the cloud"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed this is waiting on #4922

As for expectations, none, we expose what is in the store, which in turn will depend on what lifecycle policy has been configured if any

@tustvold tustvold marked this pull request as draft October 16, 2023 13:51
@tustvold
Copy link
Contributor Author

The use-case I thought I had for this, can actually avoid needing this complexity, so parking this as a draft whilst I reflect on this

@tustvold tustvold marked this pull request as ready for review October 20, 2023 13:40
@tustvold tustvold merged commit f4a2a88 into apache:master Oct 20, 2023
13 checks passed
jacksonrnewhouse added a commit to ArroyoSystems/arrow-rs that referenced this pull request Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API object-store Object Store Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get Object By Version
2 participants