thisisnic commented on PR #33918: URL: https://github.com/apache/arrow/pull/33918#issuecomment-1414014923
> How is region guessing handled in arrow's other client interfaces (e.g. python?) Is region resolution in the C++ level available with something other than FileSystem$from_uri? pyarrow has `fs.resolve_s3_region()`: https://arrow.apache.org/docs/python/generated/pyarrow.fs.resolve_s3_region.html#pyarrow.fs.resolve_s3_region > Can you tell if there is a function in the AWS S3 C++ SDK that does this, just inspecting the bucket header to determine the region? Yes; if we follow it allll the way down, we get to this function here: https://github.com/apache/arrow/blob/a0d0ecee71b99b45f2c1b269c70033d39b982d00/cpp/src/arrow/filesystem/s3fs.cc#L580-L584 I had a look at the code in the AWS S3 C++ SDK and it looks like it's doing exactly what you suggest there. -- 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]
