singhpk234 commented on code in PR #13335:
URL: https://github.com/apache/iceberg/pull/13335#discussion_r2152743289


##########
aws/src/main/java/org/apache/iceberg/aws/s3/AnalyticsAcceleratorUtil.java:
##########
@@ -59,14 +61,21 @@ private AnalyticsAcceleratorUtil() {}
   public static SeekableInputStream newStream(S3InputFile inputFile) {
     S3URI uri = S3URI.of(inputFile.uri().bucket(), inputFile.uri().key());
     HeadObjectResponse metadata = inputFile.getObjectMetadata();
-    OpenStreamInformation openStreamInfo =
-        OpenStreamInformation.builder()
-            .objectMetadata(
-                ObjectMetadata.builder()
-                    .contentLength(metadata.contentLength())
-                    .etag(metadata.eTag())
-                    .build())
-            .build();
+    OpenStreamInformation.OpenStreamInformationBuilder 
openStreamInformationBuilder =
+        OpenStreamInformation.builder();
+    openStreamInformationBuilder.objectMetadata(
+        ObjectMetadata.builder()
+            .contentLength(metadata.contentLength())
+            .etag(metadata.eTag())
+            .build());
+    if 
(inputFile.s3FileIOProperties().sseType().equals(S3FileIOProperties.SSE_TYPE_CUSTOM))
 {

Review Comment:
   +1 on adding some E2E via integ test, is this code path already covered, how 
?



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