diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index 3cc3c47acc54..dd7319af2e4c 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -2983,8 +2983,8 @@ void testInsertAll() throws IOException { builder2.put("NumericField", new BigDecimal("123456789.123456789")); InsertAllRequest request = InsertAllRequest.newBuilder(tableInfo.getTableId()) - .addRow(builder1.build()) - .addRow(builder2.build()) + .addRow(UUID.randomUUID().toString(), builder1.build()) + .addRow(UUID.randomUUID().toString(), builder2.build()) .build(); InsertAllResponse response = bigquery.insertAll(request); assertFalse(response.hasErrors()); @@ -3042,8 +3042,8 @@ void testInsertAllWithSuffix() throws InterruptedException { builder2.put("NumericField", new BigDecimal("123456789.123456789")); InsertAllRequest request = InsertAllRequest.newBuilder(tableInfo.getTableId()) - .addRow(builder1.build()) - .addRow(builder2.build()) + .addRow(UUID.randomUUID().toString(), builder1.build()) + .addRow(UUID.randomUUID().toString(), builder2.build()) .setTemplateSuffix("_suffix") .build(); InsertAllResponse response = bigquery.insertAll(request); @@ -3116,9 +3116,9 @@ void testInsertAllWithErrors() { builder3.put("BytesField", BYTES_BASE64); InsertAllRequest request = InsertAllRequest.newBuilder(tableInfo.getTableId()) - .addRow(builder1.build()) - .addRow(builder2.build()) - .addRow(builder3.build()) + .addRow(UUID.randomUUID().toString(), builder1.build()) + .addRow(UUID.randomUUID().toString(), builder2.build()) + .addRow(UUID.randomUUID().toString(), builder3.build()) .setSkipInvalidRows(true) .build(); InsertAllResponse response = bigquery.insertAll(request);