This is an automated email from the ASF dual-hosted git repository.

blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 36ca2fffea AWS, GCS: Allow access to underlying storage client (#8208)
36ca2fffea is described below

commit 36ca2fffead7e97a562d6e1cf41412300f9339b2
Author: Bryan Keller <[email protected]>
AuthorDate: Sun Aug 13 12:05:48 2023 -0700

    AWS, GCS: Allow access to underlying storage client (#8208)
---
 aws/src/main/java/org/apache/iceberg/aws/s3/S3FileIO.java   | 2 +-
 gcp/src/main/java/org/apache/iceberg/gcp/gcs/GCSFileIO.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/aws/src/main/java/org/apache/iceberg/aws/s3/S3FileIO.java 
b/aws/src/main/java/org/apache/iceberg/aws/s3/S3FileIO.java
index 93793157e2..9ba2f545b2 100644
--- a/aws/src/main/java/org/apache/iceberg/aws/s3/S3FileIO.java
+++ b/aws/src/main/java/org/apache/iceberg/aws/s3/S3FileIO.java
@@ -323,7 +323,7 @@ public class S3FileIO
     deleteFiles(() -> 
Streams.stream(listPrefix(prefix)).map(FileInfo::location).iterator());
   }
 
-  private S3Client client() {
+  public S3Client client() {
     if (client == null) {
       synchronized (this) {
         if (client == null) {
diff --git a/gcp/src/main/java/org/apache/iceberg/gcp/gcs/GCSFileIO.java 
b/gcp/src/main/java/org/apache/iceberg/gcp/gcs/GCSFileIO.java
index 8e3db34c6b..1c99bd78f2 100644
--- a/gcp/src/main/java/org/apache/iceberg/gcp/gcs/GCSFileIO.java
+++ b/gcp/src/main/java/org/apache/iceberg/gcp/gcs/GCSFileIO.java
@@ -119,7 +119,7 @@ public class GCSFileIO implements FileIO, 
SupportsBulkOperations, SupportsPrefix
     return properties.immutableMap();
   }
 
-  private Storage client() {
+  public Storage client() {
     if (storage == null) {
       synchronized (this) {
         if (storage == null) {

Reply via email to