jackye1995 commented on pull request #2807:
URL: https://github.com/apache/iceberg/pull/2807#issuecomment-931548031


   Had some offline discussion with @danielcweeks, and we are exploring why SDK 
V2 could not achieve the goal. It seems that we can still set header through:
   
   ```
       s3.putObject(PutObjectRequest.builder()
           .bucket(bucketName)
           .key(objectKey)
           .overrideConfiguration(AwsRequestOverrideConfiguration.builder()
               .putHeader("If-None-Match", "*")
               .build())
           .build());
   ```
   
   The SDK V1 just has that as a util method in `ObjectMetadata`, all the user 
metadata are just headers that has prefix `x-amz-meta-` based on 
https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingMetadata.html.
   
   Could you validate if that is the case? If we can set headers like this, can 
we move to implement this through the V2 SDK? @mechgouki 


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