From 85c3bcf6285e220b278f07908090c558614c3963 Mon Sep 17 00:00:00 2001 From: Zhichun Wu Date: Thu, 7 Oct 2021 22:01:13 +0800 Subject: [PATCH] Only compares year and major version --- .../com/clickhouse/client/grpc/ClickHouseGrpcClientTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clickhouse-grpc-client/src/test/java/com/clickhouse/client/grpc/ClickHouseGrpcClientTest.java b/clickhouse-grpc-client/src/test/java/com/clickhouse/client/grpc/ClickHouseGrpcClientTest.java index 8fa824a52..216f3cc7e 100644 --- a/clickhouse-grpc-client/src/test/java/com/clickhouse/client/grpc/ClickHouseGrpcClientTest.java +++ b/clickhouse-grpc-client/src/test/java/com/clickhouse/client/grpc/ClickHouseGrpcClientTest.java @@ -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 {