kevinjqliu commented on issue #675:
URL: 
https://github.com/apache/arrow-rs-object-store/issues/675#issuecomment-4675792321

   > My concern is that it will be hard to maintain and keep up to date as 
object store vendors change their support feature sets, etc
   
   From researching the ordered listing behavior, we already found some edge 
cases for aws and azure. There's a real concern on maintainability. For 
example, we can mark GCS with ordered listing capability today. If and when GCS 
comes out with a product line without this guarantee, we'd have to keep the 
capabilities up to date. 
   
   > Maybe we could add a as_any API that would allow people who are interested 
in specializing the implementation to do so by checking as_any().downcast_ref() 
🤔
   
   I had to ask AI to make sense of this 😄 
   Basically instead of object_store saying:
   ```
   store.capabilities().has(Capability::OrderedListing)
   ```
   the caller could say:
   ```
   if store.as_any().downcast_ref::<AmazonS3>().is_some() {
       // I know this is AmazonS3, so I can specialize
   }
   ```
   


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