From 206d3ecd5659134bec40eeae4ed986517ceaaacd Mon Sep 17 00:00:00 2001 From: PhongChuong Date: Fri, 20 Dec 2024 08:24:47 -0500 Subject: [PATCH] Update validation to include useInt64Timestamps --- .../it/ITBigQueryWriteManualClientTest.java | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteManualClientTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteManualClientTest.java index d3204c22d..d4ff1c1e2 100644 --- a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteManualClientTest.java +++ b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteManualClientTest.java @@ -1755,24 +1755,16 @@ public void testComplicateSchemaWithPendingStream() QueryJobConfiguration.newBuilder("SELECT * from " + DATASET + '.' + TABLE2).build()); Iterator queryIter = queryResult.getValues().iterator(); assertTrue(queryIter.hasNext()); - // SHOULD FAIL. - // System.out.println("CHUONGPH: " + queryIter.next().get(1).getRepeatedValue().toString()); assertEquals( - "[FieldValue{attribute=REPEATED, value=[FieldValue{attribute=PRIMITIVE, value=aaa, useInt64Timestamps=false}, FieldValue{attribute=PRIMITIVE, value=aaa, useInt64Timestamps=false}], useInt64Timestamps=false}]", + "[FieldValue{attribute=REPEATED, value=[FieldValue{attribute=PRIMITIVE, value=aaa," + + " useInt64Timestamps=false}, FieldValue{attribute=PRIMITIVE, value=aaa," + + " useInt64Timestamps=false}], useInt64Timestamps=false}]", queryIter.next().get(1).getRepeatedValue().toString()); assertEquals( - "[FieldValue{attribute=REPEATED, value=[FieldValue{attribute=PRIMITIVE, value=bbb, useInt64Timestamps=false}, FieldValue{attribute=PRIMITIVE, value=bbb, useInt64Timestamps=false}], useInt64Timestamps=false}]", + "[FieldValue{attribute=REPEATED, value=[FieldValue{attribute=PRIMITIVE, value=bbb," + + " useInt64Timestamps=false}, FieldValue{attribute=PRIMITIVE, value=bbb," + + " useInt64Timestamps=false}], useInt64Timestamps=false}]", queryIter.next().get(1).getRepeatedValue().toString()); - // assertEquals( - // "[FieldValue{attribute=REPEATED, value=[FieldValue{attribute=PRIMITIVE, value=aaa," - // + " useInt64Timestamps=false}, FieldValue{attribute=PRIMITIVE, value=aaa," - // + " useInt64Timestamps=false}]}]", - // queryIter.next().get(1).getRepeatedValue().toString()); - // assertEquals( - // "[FieldValue{attribute=REPEATED, value=[FieldValue{attribute=PRIMITIVE, value=bbb," - // + " useInt64Timestamps=false}, FieldValue{attribute=PRIMITIVE, value=bbb," - // + " useInt64Timestamps=false}]}]", - // queryIter.next().get(1).getRepeatedValue().toString()); assertFalse(queryIter.hasNext()); }