Skip to content

Commit

Permalink
Fix Iceberg DateTimeIT (#872)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
sfc-gh-alhuang authored Oct 24, 2024
1 parent 1fe05a5 commit fba8ca7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.time.ZoneId;
import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -563,6 +564,8 @@ protected void testIcebergIngestAndQuery(
.usingComparatorForType(BigDecimal::compareTo, BigDecimal.class)
.usingRecursiveComparison()
.isEqualTo(expectedValue);
} else if (expectedValue instanceof Timestamp) {
Assertions.assertThat(res.toString()).isEqualTo(expectedValue.toString());
} else {
Assertions.assertThat(res).isEqualTo(expectedValue);
}
Expand Down

0 comments on commit fba8ca7

Please sign in to comment.