Skip to content

Commit 91e6ea9

Browse files
committed
test(bigquery): verify batch count in arrow integration tests
1 parent 39a4b5c commit 91e6ea9

1 file changed

Lines changed: 4 additions & 1 deletion

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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7519,7 +7519,7 @@ void testQueryResultsFormatArrow() throws InterruptedException {
75197519
totalRows += root.getRowCount();
75207520
assertEquals(1, root.getRowCount());
75217521
}
7522-
assertTrue(batchCount > 0);
7522+
assertEquals(1, batchCount);
75237523
assertEquals(1, totalRows);
75247524
}
75257525
}
@@ -7534,10 +7534,13 @@ void testQueryResultsFormatArrowMultiPage() throws InterruptedException {
75347534
.build();
75357535
try (ArrowQueryResult result = bigquery.queryArrow(config)) {
75367536
assertNotNull(result);
7537+
int batchCount = 0;
75377538
long totalRows = 0;
75387539
for (VectorSchemaRoot root : result) {
7540+
batchCount++;
75397541
totalRows += root.getRowCount();
75407542
}
7543+
assertTrue(batchCount > 1);
75417544
assertEquals(15000, totalRows);
75427545
}
75437546
}

0 commit comments

Comments
 (0)