yahoNanJing commented on PR #3839: URL: https://github.com/apache/arrow-rs/pull/3839#issuecomment-1481063507
> Calling get on this object store then: Calls through ObjectStoreWithKey to FileCacheObjectStore Looks up the value in the cache, passing the inner store as the GetExtra argument This propagates through to FileCacheLoader::load Which then calls CacheMedium::get_mapping_location Which finally calls through to get_key which attempts to downcast the provided ObjectStore to ObjectStoreWithKey This will always fail as the ObjectStoreWithKey is decorating the FileCacheObjectStore not the other way round Thanks @tustvold for providing this genius idea. It works now without introducing `as_any` to the `ObjectStore`. Related commit is here. https://github.com/yahoNanJing/arrow-ballista/commit/84a98d73a164b655b80f4391611de4c499b27f73 -- 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]
