gruuya opened a new issue, #182:
URL: https://github.com/apache/arrow-rs-object-store/issues/182

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   The `InMemory` object stores currently 
[spoofs](https://github.com/apache/arrow-rs/blob/master/object_store/src/memory.rs#L148)
 the `last_modified` field of the fetched `ObjectMeta`s. In some cases, it is 
important for this value to be correct. 
   
   One such case is [deducing the `DeltaTable` 
version](https://github.com/delta-io/delta-rs/blob/main/rust/src/delta.rs#L737-L739)
 based on a user-provided timestamp in time travel querying—if the 
`last_modified` field is wrong the wrong version of the table will be loaded. 
Admittedly, no one should be using an in-memory store for actual work, but it 
would still be very handy to have this working for testing.
   
   **Describe the solution you'd like**
   Keep a separate map of `last_modified` timestamps, and update it on each 
write call (`put`, `copy`, etc.).
   
   **Describe alternatives you've considered**
   Don't use `InMem` store whenever `last_modified` field is crucial for the 
logic.
   
   **Additional context**
   This could be a good first issue.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to