Skip to content

Commit

Permalink
Only compares year and major version
Browse files Browse the repository at this point in the history
  • Loading branch information
zhicwu committed Oct 7, 2021
1 parent 77e67bc commit 85c3bcf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ public void testReadWriteSimpleTypes(String dataType, String zero, String negati
Assert.assertEquals(records.get(3)[1], positiveOne);

if ((ClickHouseDataType.DateTime.name().equals(dataType)
|| ClickHouseDataType.DateTime32.name().equals(dataType)) && version.getMajor() == 21
&& version.getMinor() == 3) {
|| ClickHouseDataType.DateTime32.name().equals(dataType)) && version.getYear() == 21
&& version.getMajor() == 3) {
// skip DateTime and DateTime32 negative test on 21.3 since it's not doing well
// see https://github.com/ClickHouse/ClickHouse/issues/29835 for more
} else {
Expand Down

0 comments on commit 85c3bcf

Please sign in to comment.