gavinchou commented on code in PR #43525: URL: https://github.com/apache/doris/pull/43525#discussion_r1845486541
########## be/src/io/fs/local_file_system.cpp: ########## @@ -471,4 +471,35 @@ Status LocalFileSystem::permission_impl(const Path& file, std::filesystem::perms return Status::OK(); } +Path LocalFileSystem::convert_to_abs_path(const Path& inputPathString) { + std::string pathString = inputPathString; + + // Initialize scheme and authority + std::string scheme; + std::string authority; + + size_t start = 0; + + // Parse URI scheme, if any + size_t colon = pathString.find(':'); Review Comment: why not use `std::string::starts_with()` ? -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org