yahoNanJing commented on PR #3839: URL: https://github.com/apache/arrow-rs/pull/3839#issuecomment-1480694002
> Now that rust supports trait upcasting you might be able to just make ObjectStore: Any Hi @tustvold, I'm afraid we still need to add the as_any() interface to the trait. Based on https://github.com/apache/arrow-datafusion/pull/5543, I factored previous code. However, it doesn't work as expected. See the UT fails in https://github.com/yahoNanJing/arrow-ballista/blob/dev-20230322/ballista/core/src/cache_layer/object_store/mod.rs Or maybe there are other correct way to downcast an `Arc<dyn ObjectStore>`. https://github.com/yahoNanJing/arrow-ballista/blob/dev-20230322/ballista/core/src/cache_layer/object_store/mod.rs?plain=1#L31-L39 -- 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]
