Skip to content

Commit 736c2a1

Browse files
committed
lint
1 parent a973a8d commit 736c2a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,6 +2045,14 @@ public Object queryWithTimeout(
20452045
throws InterruptedException, JobException {
20462046
Job.checkNotDryRun(configuration, "query");
20472047

2048+
// If JobCreationMode is not explicitly set, update it with default value;
2049+
if (configuration.getJobCreationMode() == null) {
2050+
configuration =
2051+
configuration.toBuilder()
2052+
.setJobCreationMode(getOptions().getDefaultJobCreationMode())
2053+
.build();
2054+
}
2055+
20482056
Span querySpan = null;
20492057
if (getOptions().isOpenTelemetryTracingEnabled()
20502058
&& getOptions().getOpenTelemetryTracer() != null) {

0 commit comments

Comments
 (0)