Skip to content

Commit 0b6a924

Browse files
authored
test(bigquery): improve assertion in testLocationFastSQLQueryWithJobId (#12815)
b/467064827
1 parent 4e566af commit 0b6a924

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it

java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4732,7 +4732,13 @@ void testLocationFastSQLQueryWithJobId() throws InterruptedException {
47324732
// Use `getNumDmlAffectedRows()` for DML operations
47334733
Job queryJob = bigquery.getJob(result.getJobId());
47344734
queryJob = queryJob.waitFor();
4735+
assertNull(
4736+
queryJob.getStatus().getError(),
4737+
"Job failed with error: " + queryJob.getStatus().getError());
4738+
47354739
JobStatistics.QueryStatistics statistics = queryJob.getStatistics();
4740+
assertNotNull(
4741+
statistics.getNumDmlAffectedRows(), "DML affected rows statistics should not be null");
47364742
assertEquals(1L, statistics.getNumDmlAffectedRows().longValue());
47374743

47384744
// Verify correctness of table content

0 commit comments

Comments
 (0)