File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
clickhouse-jdbc/src/test/java/com/clickhouse/jdbc Expand file tree Collapse file tree 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 {
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 ();
Original file line number Diff line number Diff 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;"
You can’t perform that action at this time.
0 commit comments