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

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   Currently `Content-Type` is not included in object metadata. It is instead 
available in `Attributes` only. But the `ListResult` only includes 
`ObjectMetadata` structs. Most of object stores return `Content-Type` in list 
metadata. That is imperative to show a list ui with proper mime-type, etc. As 
that information is not propagated by `object_store` interface in `ListResult`, 
it curtails many use cases.
   
   **Describe the solution you'd like**
   Include `content_type: Option<String>` like field in `ObjectMetadata`, and 
populate it during construction of `ListResult`. For backends that doesn't have 
notion of content-type, we can have populate with `None`.
    
   **Describe alternatives you've considered**
   Make seperate request for full metadata. This have issue with listing, as we 
have to make O(n) requests for a list with `n` items, where as all modern 
object-stores directly provides `content-type` in list result.
   


-- 
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