We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7258ada commit 03bda1bCopy full SHA for 03bda1b
google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Job.java
@@ -297,8 +297,10 @@ public TableResult getQueryResults(QueryResultsOption... options)
297
job = reload();
298
}
299
if (job.getStatus() != null && job.getStatus().getError() != null) {
300
- throw new JobException(
301
- getJobId(), ImmutableList.copyOf(job.getStatus().getExecutionErrors()));
+ throw new BigQueryException(
+ job.getStatus().getExecutionErrors() == null
302
+ ? ImmutableList.of(job.getStatus().getError())
303
+ : ImmutableList.copyOf(job.getStatus().getExecutionErrors()));
304
305
306
// If there are no rows in the result, this may have been a DDL query.
0 commit comments