From e2f20ddbc91287fd51bae3d090bc81cd6df3ac6f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 23 Jun 2023 15:12:29 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../google/cloud/bigquery/BigQueryImplTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java index c39057b29..734932062 100644 --- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java +++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java @@ -58,7 +58,6 @@ import com.google.common.collect.Iterables; import com.google.common.collect.Lists; import com.google.common.collect.Maps; - import java.io.FileInputStream; import java.io.IOException; import java.math.BigInteger; @@ -2868,7 +2867,7 @@ public void testTestIamPermissionsWhenNoPermissionsGranted() { } @Test - public void testSumeet() throws Exception{ + public void testSumeet() throws Exception { String projectId = "scio-apps"; String datasetId = "staging"; String tableName = "processed_visits"; @@ -2876,16 +2875,17 @@ public void testSumeet() throws Exception{ getBqTable(stream, projectId, datasetId, tableName); } - private static void getBqTable(FileInputStream stream, String projectId, String datasetId, String tableName) throws Exception{ - BigQuery bigquery = BigQueryOptions. - newBuilder() - .setCredentials(ServiceAccountCredentials - .fromStream(stream)) + private static void getBqTable( + FileInputStream stream, String projectId, String datasetId, String tableName) + throws Exception { + BigQuery bigquery = + BigQueryOptions.newBuilder() + .setCredentials(ServiceAccountCredentials.fromStream(stream)) .build() .getService(); Table table = bigquery.getTable(TableId.of(projectId, datasetId, tableName)); -// var json = WRITER.writeValueAsString(table); + // var json = WRITER.writeValueAsString(table); System.out.println(table.getNumTotalLogicalBytes()); } }