@@ -279,7 +279,7 @@ private static String jdbcURLV1(boolean isCloud) {
279279 private static String jdbcURLV2 (boolean isCloud ) {
280280 ClickHouseNode node = getServer ();
281281 if (isCloud ) {
282- return String .format ("jdbc:clickhouse://%s:%s?ssl=true" , node .getHost (), node .getPort ());
282+ return String .format ("jdbc:clickhouse:https: //%s:%s?ssl=true" , node .getHost (), node .getPort ());
283283 } else
284284 return String .format ("jdbc:clickhouse://%s:%s" , node .getHost (), node .getPort ());
285285 }
@@ -291,10 +291,10 @@ protected static Connection getJdbcV1() {
291291
292292 Connection jdbcV1 = null ;
293293 String jdbcURL = jdbcURLV1 (isCloud ());
294- LOGGER .info ("JDBC URL: " + jdbcURL );
294+ LOGGER .warn ("JDBC URL V1 : " + jdbcURL );
295295 try {
296296 jdbcV1 = new ClickHouseDriver ().connect (jdbcURL , properties );
297- } catch (SQLException e ) {
297+ } catch (Exception e ) {
298298 LOGGER .error (e .getMessage ());
299299 }
300300 return jdbcV1 ;
@@ -307,11 +307,12 @@ protected static Connection getJdbcV2() {
307307
308308 Connection jdbcV2 = null ;
309309 String jdbcURL = jdbcURLV2 (isCloud ());
310- LOGGER .info ("JDBC URL: " + jdbcURL );
310+ LOGGER .warn ("JDBC URL V2 : " + jdbcURL );
311311
312312 try {
313313 jdbcV2 = new ClickHouseDriver ().connect (jdbcURL , properties );
314- } catch (SQLException e ) {
314+ } catch (Exception e ) {
315+ e .printStackTrace ();
315316 LOGGER .error (e .getMessage ());
316317 }
317318
0 commit comments