Skip to content

Commit

Permalink
Merge pull request #844 from GoogleCloudPlatform/tswast-patch-1
Browse files Browse the repository at this point in the history
BigQuery : update links based on query docs refactoring
  • Loading branch information
tswast committed Sep 19, 2017
2 parents 2ec36ec + d00ca72 commit 74e4e2c
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public static void runStandardSqlQuery(String queryString)
throws TimeoutException, InterruptedException {
QueryJobConfiguration queryConfig =
QueryJobConfiguration.newBuilder(queryString)
// To use standard SQL syntax, set useLegacySql to false.
// See: https://cloud.google.com/bigquery/sql-reference/
// To use standard SQL syntax, set useLegacySql to false. See:
// https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql
.setUseLegacySql(false)
.build();

Expand All @@ -73,12 +73,12 @@ public static void runQueryPermanentTable(
boolean allowLargeResults) throws TimeoutException, InterruptedException {
QueryJobConfiguration queryConfig =
QueryJobConfiguration.newBuilder(queryString)
// Save the results of the query to a permanent table.
// See: https://cloud.google.com/bigquery/querying-data#permanent-table
// Save the results of the query to a permanent table. See:
// https://cloud.google.com/bigquery/docs/writing-results#permanent-table
.setDestinationTable(TableId.of(destinationDataset, destinationTable))
// Allow results larger than the maximum response size.
// If true, a destination table must be set.
// See: https://cloud.google.com/bigquery/querying-data#large-results
// If true, a destination table must be set. See:
// https://cloud.google.com/bigquery/docs/writing-results#large-results
.setAllowLargeResults(allowLargeResults)
.build();

Expand All @@ -91,8 +91,8 @@ public static void runUncachedQuery(String queryString)
throws TimeoutException, InterruptedException {
QueryJobConfiguration queryConfig =
QueryJobConfiguration.newBuilder(queryString)
// Do not use the query cache. Force live query evaluation.
// See: https://cloud.google.com/bigquery/querying-data#query-caching
// Do not use the query cache. Force live query evaluation. See:
// https://cloud.google.com/bigquery/docs/cached-results#disabling_retrieval_of_cached_results
.setUseQueryCache(false)
.build();

Expand All @@ -106,8 +106,8 @@ public static void runBatchQuery(String queryString)
QueryJobConfiguration queryConfig =
QueryJobConfiguration.newBuilder(queryString)
// Run at batch priority, which won't count toward concurrent rate
// limit.
// See: https://cloud.google.com/bigquery/querying-data#interactive-batch
// limit. See:
// https://cloud.google.com/bigquery/docs/running-queries#batch
.setPriority(QueryJobConfiguration.Priority.BATCH)
.build();

Expand Down

0 comments on commit 74e4e2c

Please sign in to comment.