westonpace commented on a change in pull request #11997:
URL: https://github.com/apache/arrow/pull/11997#discussion_r772587608



##########
File path: cpp/src/arrow/filesystem/s3fs.cc
##########
@@ -402,6 +402,10 @@ struct S3Path {
   std::vector<std::string> key_parts;
 
   static Result<S3Path> FromString(const std::string& s) {
+    if (internal::IsLikelyUri(s)) {
+      return Status::Invalid(
+          "Expected a S3 object path of the form 'bucket/key...', got a URI: 
'", s, "'");

Review comment:
       ```suggestion
             "Expected an S3 object path of the form 'bucket/key...', got a 
URI: '", s, "'");
   ```




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


Reply via email to