From d369ef58ddae66ebe518f7062716d8ae1394489b Mon Sep 17 00:00:00 2001 From: ilesh garish <111810784+sfc-gh-igarish@users.noreply.github.com> Date: Mon, 14 Nov 2022 19:57:00 -0800 Subject: [PATCH] Fix SNOW-683245 and format the file (#1188) * Fix SNOW-683245 and format the file * Enable the test --- .../client/jdbc/cloud/storage/SnowflakeGCSClient.java | 3 ++- .../net/snowflake/client/jdbc/SnowflakeDriverLatestIT.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 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;