wgtmac commented on code in PR #889:
URL: https://github.com/apache/iceberg-cpp/pull/889#discussion_r3794188218


##########
src/iceberg/util/location_util.cc:
##########
@@ -17,20 +17,16 @@
  * under the License.
  */
 
-#pragma once
-
-/// \file iceberg/resolving_file_io_internal.h
-/// \brief Internal helpers for ResolvingFileIO. Not part of the public API.
-
-#include <string_view>
-
-#include "iceberg/iceberg_export.h"
-#include "iceberg/result.h"
+#include "iceberg/util/location_util.h"
 
 namespace iceberg {
 
-/// \brief The FileIORegistry name of the implementation serving `location`,
-/// chosen by its URI scheme. Exported so tests can link it in shared builds.
-ICEBERG_EXPORT Result<std::string_view> ResolveFileIOName(std::string_view 
location);
+std::string_view LocationUtil::ParseScheme(std::string_view location) {
+  const auto colon = location.find(':');

Review Comment:
   Indeed I have tried this which ended up with messy code here. I deliberately 
align this logic with Java with the assumption that local file is not supposed 
to be used in production so we should not bother with them just for testing 
purposes.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to