From 87a42d728c67fe1bf08d40b7888a39865a24856a Mon Sep 17 00:00:00 2001 From: zhaner08 Date: Fri, 25 Oct 2024 17:09:37 -0400 Subject: [PATCH] Pass in requestPayer for ListObjectsV2Request in listObjects method --- .../src/main/java/io/trino/filesystem/s3/S3FileSystem.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/trino-filesystem-s3/src/main/java/io/trino/filesystem/s3/S3FileSystem.java b/lib/trino-filesystem-s3/src/main/java/io/trino/filesystem/s3/S3FileSystem.java index e4695dc566d2..236d05765bbc 100644 --- a/lib/trino-filesystem-s3/src/main/java/io/trino/filesystem/s3/S3FileSystem.java +++ b/lib/trino-filesystem-s3/src/main/java/io/trino/filesystem/s3/S3FileSystem.java @@ -239,6 +239,7 @@ private FileIterator listObjects(Location location, boolean includeDirectoryObje ListObjectsV2Request request = ListObjectsV2Request.builder() .overrideConfiguration(context::applyCredentialProviderOverride) + .requestPayer(requestPayer) .bucket(s3Location.bucket()) .prefix(key) .build();