Skip to content

Comments

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

Merged
tustvold merged 2 commits intoapache:masterfrom
tustvold:add-version
Oct 20, 2023
Merged

Add ObjectMeta::version and GetOptions::version (#4925)#4935
tustvold merged 2 commits intoapache:masterfrom
tustvold:add-version

Conversation

@tustvold
Copy link
Contributor

Which issue does this PR close?

Closes apache/arrow-rs-object-store#127

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?

@tustvold tustvold added the api-change Changes to the arrow API label Oct 13, 2023
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
alamb pushed a commit to alamb/arrow-rs that referenced this pull request Mar 20, 2025
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get Object By Version

2 participants