zeroshade commented on code in PR #118:
URL: https://github.com/apache/iceberg-go/pull/118#discussion_r1719991581


##########
io/s3.go:
##########
@@ -45,43 +44,42 @@ const (
 )
 
 func createS3FileIO(parsed *url.URL, props map[string]string) (IO, error) {
-       opts := []func(*config.LoadOptions) error{}
+       cfgOpts := []func(*config.LoadOptions) error{}
+       opts := []func(*s3.Options){}
+
        endpoint, ok := props[S3EndpointURL]
        if !ok {
                endpoint = os.Getenv("AWS_S3_ENDPOINT")
        }
 
        if endpoint != "" {
-               opts = append(opts, 
config.WithEndpointResolverWithOptions(aws.EndpointResolverWithOptionsFunc(func(service,
 region string, options ...interface{}) (aws.Endpoint, error) {
-                       if service != s3.ServiceID {
-                               // fallback to default resolution for the 
service
-                               return aws.Endpoint{}, 
&aws.EndpointNotFoundError{}
-                       }
-
-                       return aws.Endpoint{
-                               URL:               endpoint,
-                               SigningRegion:     region,
-                               HostnameImmutable: true,
-                       }, nil
-               })))
+               opts = append(opts, func(o *s3.Options) {

Review Comment:
   Sorry about this, I originally had intended for this to be done as a 
separate change but the CI started failing without this / I wasn't able to get 
the CI testing of the new changes without this so I ended up adding it to this. 



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to