There was an error while loading. Please reload this page.
1 parent a973a8d commit 736c2a1Copy full SHA for 736c2a1
google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java
@@ -2045,6 +2045,14 @@ public Object queryWithTimeout(
2045
throws InterruptedException, JobException {
2046
Job.checkNotDryRun(configuration, "query");
2047
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
+
2056
Span querySpan = null;
2057
if (getOptions().isOpenTelemetryTracingEnabled()
2058
&& getOptions().getOpenTelemetryTracer() != null) {
0 commit comments