Skip to content

Commit

Permalink
Remove unwanted test(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeetgajjar committed Jun 23, 2023
1 parent e2f20dd commit 8f965da
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import com.google.api.services.bigquery.model.TableDataInsertAllResponse;
import com.google.api.services.bigquery.model.TableDataList;
import com.google.api.services.bigquery.model.TableRow;
import com.google.auth.oauth2.ServiceAccountCredentials;
import com.google.cloud.Policy;
import com.google.cloud.ServiceOptions;
import com.google.cloud.Tuple;
Expand Down Expand Up @@ -2865,27 +2864,4 @@ public void testTestIamPermissionsWhenNoPermissionsGranted() {
assertEquals(perms, ImmutableList.of());
verify(bigqueryRpcMock).testIamPermissions(resourceId, checkedPermissions, EMPTY_RPC_OPTIONS);
}

@Test
public void testSumeet() throws Exception {
String projectId = "scio-apps";
String datasetId = "staging";
String tableName = "processed_visits";
FileInputStream stream = new FileInputStream("/Users/sumeet/revefi/creds/bigquery-glean.json");
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))
.build()
.getService();

Table table = bigquery.getTable(TableId.of(projectId, datasetId, tableName));
// var json = WRITER.writeValueAsString(table);
System.out.println(table.getNumTotalLogicalBytes());
}
}

0 comments on commit 8f965da

Please sign in to comment.