| 229 | } |
| 230 | |
| 231 | Result<void*> try_dlopen(const std::vector<PlatformFilename>& potential_paths, |
| 232 | std::string name) { |
| 233 | std::string error_message = "Unable to load " + name; |
| 234 | |
| 235 | for (const auto& p : potential_paths) { |
| 236 | auto maybe_handle = arrow::internal::LoadDynamicLibrary(p); |
| 237 | if (maybe_handle.ok()) return *maybe_handle; |
| 238 | error_message += "\n" + maybe_handle.status().message(); |
| 239 | } |
| 240 | |
| 241 | return Status(StatusCode::IOError, std::move(error_message)); |
| 242 | } |
| 243 | |
| 244 | LibHdfsShim libhdfs_shim; |
| 245 |
no test coverage detected