Skip to content

Commit

Permalink
feat: implement wasNull for BigQueryResultSet
Browse files Browse the repository at this point in the history
  • Loading branch information
PhongChuong committed Jan 25, 2025
1 parent 8a2f2da commit 484c8af
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ public void testResultSetReadApi() throws InterruptedException, SQLException {
assertThat(resultSet.wasNull()).isFalse();
assertThat(resultSet.getTime("time").getTime()).isEqualTo(EXPECTED_TIME.getTime());
assertThat(resultSet.wasNull()).isFalse();
// Do not check date value as Date object do not have timezone but its toString() applies the
// JVM default timezone which causes flakes in non-UTC zones.
assertThat(resultSet.getDate("date")).isNotNull();
assertThat(resultSet.getDate("date").toString()).isEqualTo(EXPECTED_DATE.toString());
assertThat(resultSet.wasNull()).isFalse();

assertThat(resultSet.next()).isTrue();
Expand Down

0 comments on commit 484c8af

Please sign in to comment.