Skip to content

Commit 4204613

Browse files
alixhamipongad
authored andcommitted
---
yaml --- r: 9825 b: refs/heads/master c: ccfdd61 h: refs/heads/master i: 9823: 401db75
1 parent e82035a commit 4204613

3 files changed

Lines changed: 1 addition & 29 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 86ea052196d793637480d3ff1fad7a3856425d1f
2+
refs/heads/master: ccfdd61b54cfd8b73e44d665bbdb2b3dc1da1bdb
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: 03aa637ca038bc7904083f090fd16e091f513230
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -71,27 +71,6 @@ public void runLegacySqlQuery() throws InterruptedException {
7171
// [END bigquery_query_legacy]
7272
}
7373

74-
/**
75-
* Example of running a query with Standard SQL explicitly set.
76-
*/
77-
public void runStandardSqlQuery() throws InterruptedException {
78-
// [START bigquery_query_standard]
79-
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
80-
String query = "SELECT corpus FROM `bigquery-public-data.samples.shakespeare` GROUP BY corpus;";
81-
QueryJobConfiguration queryConfig =
82-
// Note that setUseLegacySql is set to false by default
83-
QueryJobConfiguration.newBuilder(query).setUseLegacySql(false).build();
84-
85-
// Print the results.
86-
for (FieldValueList row : bigquery.query(queryConfig).iterateAll()) {
87-
for (FieldValue val : row) {
88-
System.out.printf("%s,", val.toString());
89-
}
90-
System.out.printf("\n");
91-
}
92-
// [END bigquery_query_standard]
93-
}
94-
9574
/**
9675
* Example of running a query and saving the results to a table.
9776
*/

trunk/google-cloud-examples/src/test/java/com/google/cloud/examples/bigquery/snippets/ITCloudSnippets.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ public void testRunLegacySqlQuery() throws InterruptedException {
6262
assertTrue(got.contains("romeoandjuliet"));
6363
}
6464

65-
@Test
66-
public void testRunStandardSqlQuery() throws InterruptedException {
67-
cloudSnippets.runStandardSqlQuery();
68-
String got = bout.toString();
69-
assertTrue(got.contains("romeoandjuliet"));
70-
}
71-
7265
@Test
7366
public void testRunQueryPermanentTable() throws InterruptedException {
7467
String tableName = "test_destination_table";

0 commit comments

Comments
 (0)