Skip to content

Commit

Permalink
feat: Use location in BigQueryOption as the default for query
Browse files Browse the repository at this point in the history
  • Loading branch information
PhongChuong committed Dec 18, 2023
1 parent 46da59c commit a3fe481
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6229,8 +6229,7 @@ public void testAlreadyExistJobExceptionHandling() throws InterruptedException {
public void testStatelessQueries() throws InterruptedException {
// Create local BigQuery to not contaminate global test parameters.
RemoteBigQueryHelper bigqueryHelper = RemoteBigQueryHelper.create();
BigQuery bigQuery =
bigqueryHelper.getOptions().toBuilder().setLocation("US").build().getService();
BigQuery bigQuery = bigqueryHelper.getOptions().getService();

// simulate setting the QUERY_PREVIEW_ENABLED environment variable
bigQuery.getOptions().setQueryPreviewEnabled("TRUE");
Expand Down

0 comments on commit a3fe481

Please sign in to comment.