Skip to content

Commit

Permalink
Update validation to include useInt64Timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
PhongChuong committed Dec 20, 2024
1 parent ffee4f4 commit 206d3ec
Showing 1 changed file with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1755,24 +1755,16 @@ public void testComplicateSchemaWithPendingStream()
QueryJobConfiguration.newBuilder("SELECT * from " + DATASET + '.' + TABLE2).build());
Iterator<FieldValueList> 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());
}

Expand Down

0 comments on commit 206d3ec

Please sign in to comment.