From 0ac8032e8f67f439b3c284c2a316a54ebad22f2b Mon Sep 17 00:00:00 2001 From: vmaltsev Date: Fri, 15 Apr 2022 13:32:25 +0300 Subject: [PATCH] update CHANGELOG --- .../integrations/destination/bigquery/BigQueryDestination.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-integrations/connectors/destination-bigquery/src/main/java/io/airbyte/integrations/destination/bigquery/BigQueryDestination.java b/airbyte-integrations/connectors/destination-bigquery/src/main/java/io/airbyte/integrations/destination/bigquery/BigQueryDestination.java index cda6a95e97d1..c4246756356b 100644 --- a/airbyte-integrations/connectors/destination-bigquery/src/main/java/io/airbyte/integrations/destination/bigquery/BigQueryDestination.java +++ b/airbyte-integrations/connectors/destination-bigquery/src/main/java/io/airbyte/integrations/destination/bigquery/BigQueryDestination.java @@ -125,7 +125,7 @@ public AirbyteConnectionStatus checkStorageIamPermissions(final JsonNode config) final Storage storage = StorageOptions.newBuilder() .setProjectId(config.get(BigQueryConsts.CONFIG_PROJECT_ID).asText()) - .setCredentials(credentials) + .setCredentials(!isNull(credentials) ? credentials : ServiceAccountCredentials.getApplicationDefault()) .build().getService(); final List permissionsCheckStatusList = storage.testIamPermissions(bucketName, REQUIRED_PERMISSIONS);