yahoNanJing commented on PR #3595:
URL: 
https://github.com/apache/arrow-datafusion/pull/3595#issuecomment-1255926700

   > Returning Ok(None) will just get converted into a less useful error by 
ObjectStoreRegistry than the one the ObjectStoreProvider could have produced.
   
   The *ObjectStoreProvider* is a new added way to find an object store. In the 
future, there may be other ways besides *ObjectStoreProvider* to find an object 
store. Then we can add similar logic as follows:
   ```
   // If no store found, then try to find and register one through XXXXX.
           if store.is_none() {
               store = self.register_through_XXXXX(url)?;
           }
   ```
   
   Therefore, I don't think it's a good idea for the provider to throw an error 
if there's no object store find.


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