Skip to content

Commit cbc9e06

Browse files
committed
Skip two new tests on 22.3
1 parent ddeb800 commit cbc9e06

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

clickhouse-jdbc/src/test/java/com/clickhouse/jdbc/ClickHousePreparedStatementTest.java

+3
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,9 @@ public void testInsertQueryDateTime64() throws SQLException {
698698
public void testBatchDdl() throws SQLException {
699699
Properties props = new Properties();
700700
try (ClickHouseConnection conn = newConnection(props)) {
701+
if (!conn.getServerVersion().check("[22.8,)")) {
702+
throw new SkipException("Skip due to error 'unknown key zookeeper_load_balancing'");
703+
}
701704
try (PreparedStatement stmt = conn.prepareStatement(
702705
"drop table if exists test_batch_dll_on_cluster on cluster test_shard_localhost")) {
703706
stmt.addBatch();

clickhouse-jdbc/src/test/java/com/clickhouse/jdbc/ClickHouseStatementTest.java

+4
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ private Object[][] getConnectionProperties() {
7272
public void testBatchUpdate() throws SQLException {
7373
Properties props = new Properties();
7474
try (ClickHouseConnection conn = newConnection(props); ClickHouseStatement stmt = conn.createStatement()) {
75+
if (!conn.getServerVersion().check("[22.8,)")) {
76+
throw new SkipException("Skip due to error 'unknown key zookeeper_load_balancing'");
77+
}
78+
7579
stmt.addBatch("drop table if exists test_batch_dll_on_cluster on cluster test_shard_localhost");
7680
stmt.addBatch(
7781
"create table if not exists test_batch_dll_on_cluster on cluster test_shard_localhost(a Int64) Engine=MergeTree order by a;"

0 commit comments

Comments
 (0)