Skip to content

Commit 0b085bf

Browse files
committed
test(bigquery): improve assertion in testLocationFastSQLQueryWithJobId
1 parent dce372c commit 0b085bf

1 file changed

Lines changed: 3 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4732,7 +4732,10 @@ void testLocationFastSQLQueryWithJobId() throws InterruptedException {
47324732
// Use `getNumDmlAffectedRows()` for DML operations
47334733
Job queryJob = bigquery.getJob(result.getJobId());
47344734
queryJob = queryJob.waitFor();
4735+
assertNull(queryJob.getStatus().getError(), "Job failed with error: " + queryJob.getStatus().getError());
4736+
47354737
JobStatistics.QueryStatistics statistics = queryJob.getStatistics();
4738+
assertNotNull(statistics.getNumDmlAffectedRows(), "DML affected rows statistics should not be null");
47364739
assertEquals(1L, statistics.getNumDmlAffectedRows().longValue());
47374740

47384741
// Verify correctness of table content

0 commit comments

Comments
 (0)