From 66973b4ca64b8a203d0ed1db4eef10c06f398ef2 Mon Sep 17 00:00:00 2001 From: Ilesh garish Date: Wed, 9 Nov 2022 21:12:19 +0000 Subject: [PATCH 1/2] Fix SNOW-683245 and format the file --- .../client/jdbc/cloud/storage/SnowflakeGCSClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/snowflake/client/jdbc/cloud/storage/SnowflakeGCSClient.java b/src/main/java/net/snowflake/client/jdbc/cloud/storage/SnowflakeGCSClient.java index 48471dfe6..1e57c334b 100644 --- a/src/main/java/net/snowflake/client/jdbc/cloud/storage/SnowflakeGCSClient.java +++ b/src/main/java/net/snowflake/client/jdbc/cloud/storage/SnowflakeGCSClient.java @@ -296,7 +296,8 @@ public void download( } logger.debug("Starting download without presigned URL", false); - blob.downloadTo(localFile.toPath()); + blob.downloadTo( + localFile.toPath(), Blob.BlobSourceOption.shouldReturnRawInputStream(true)); logger.debug("Download successful", false); // Get the user-defined BLOB metadata From 8a00b7f3b43c45cfb38db07a5bd4190d19e8abad Mon Sep 17 00:00:00 2001 From: Ilesh garish Date: Sat, 12 Nov 2022 08:24:09 +0000 Subject: [PATCH 2/2] Enable the test --- .../java/net/snowflake/client/jdbc/SnowflakeDriverLatestIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/net/snowflake/client/jdbc/SnowflakeDriverLatestIT.java b/src/test/java/net/snowflake/client/jdbc/SnowflakeDriverLatestIT.java index 4e21ee3e5..3a843ad19 100644 --- a/src/test/java/net/snowflake/client/jdbc/SnowflakeDriverLatestIT.java +++ b/src/test/java/net/snowflake/client/jdbc/SnowflakeDriverLatestIT.java @@ -857,7 +857,7 @@ private void testGeoMetadataSingle( * @throws Throwable */ @Test - @Ignore + @ConditionalIgnoreRule.ConditionalIgnore(condition = RunningOnGithubAction.class) public void testPutGetGcsDownscopedCredential() throws Throwable { Connection connection = null; Statement statement = null;