@@ -1928,8 +1928,7 @@ public TableResult query(QueryJobConfiguration configuration, JobOption... optio
19281928 return query (configuration , null , options );
19291929 }
19301930
1931- private Object queryRpc (
1932- final String projectId , final QueryRequest content , JobOption ... options )
1931+ private Object queryRpc (final String projectId , final QueryRequest content , JobOption ... options )
19331932 throws InterruptedException {
19341933 com .google .api .services .bigquery .model .QueryResponse results ;
19351934 Span queryRpc = null ;
@@ -2034,14 +2033,15 @@ public com.google.api.services.bigquery.model.QueryResponse call()
20342033 public TableResult query (QueryJobConfiguration configuration , JobId jobId , JobOption ... options )
20352034 throws InterruptedException , JobException {
20362035 Object result = queryWithTimeout (configuration , jobId , null , options );
2037- if (result instanceof Job ){
2036+ if (result instanceof Job ) {
20382037 return ((Job ) result ).getQueryResults ();
2039- }
2038+ }
20402039 return (TableResult ) result ;
20412040 }
20422041
20432042 @ Override
2044- public Object queryWithTimeout (QueryJobConfiguration configuration , JobId jobId , Long timeoutMs , JobOption ... options )
2043+ public Object queryWithTimeout (
2044+ QueryJobConfiguration configuration , JobId jobId , Long timeoutMs , JobOption ... options )
20452045 throws InterruptedException , JobException {
20462046 Job .checkNotDryRun (configuration , "query" );
20472047
@@ -2068,7 +2068,9 @@ && getOptions().getOpenTelemetryTracer() != null) {
20682068 // fail with "Access denied" if the project do not have enough permissions to run the job.
20692069
20702070 String projectId =
2071- jobId != null && jobId .getProject () != null ? jobId .getProject () : getOptions ().getProjectId ();
2071+ jobId != null && jobId .getProject () != null
2072+ ? jobId .getProject ()
2073+ : getOptions ().getProjectId ();
20722074 QueryRequest content = requestInfo .toPb ();
20732075 // Be careful when setting the location, if a location is specified in the BigQueryOption or
20742076 // JobId the job created by the query method will be in that location, even if the table to
@@ -2080,7 +2082,7 @@ && getOptions().getOpenTelemetryTracer() != null) {
20802082 } else if (getOptions ().getLocation () != null ) {
20812083 content .setLocation (getOptions ().getLocation ());
20822084 }
2083- if (timeoutMs != null ){
2085+ if (timeoutMs != null ) {
20842086 content .setTimeoutMs (timeoutMs );
20852087 }
20862088
0 commit comments