File tree 2 files changed +7
-0
lines changed
clickhouse-jdbc/src/test/java/com/clickhouse/jdbc
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -698,6 +698,9 @@ public void testInsertQueryDateTime64() throws SQLException {
698
698
public void testBatchDdl () throws SQLException {
699
699
Properties props = new Properties ();
700
700
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
+ }
701
704
try (PreparedStatement stmt = conn .prepareStatement (
702
705
"drop table if exists test_batch_dll_on_cluster on cluster test_shard_localhost" )) {
703
706
stmt .addBatch ();
Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ private Object[][] getConnectionProperties() {
72
72
public void testBatchUpdate () throws SQLException {
73
73
Properties props = new Properties ();
74
74
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
+
75
79
stmt .addBatch ("drop table if exists test_batch_dll_on_cluster on cluster test_shard_localhost" );
76
80
stmt .addBatch (
77
81
"create table if not exists test_batch_dll_on_cluster on cluster test_shard_localhost(a Int64) Engine=MergeTree order by a;"
You can’t perform that action at this time.
0 commit comments