private static Connection establishConnection(String url, String user, String password) throws Exception {
        Connection conn;
        try {
            Class.forName(CLICKHOUSE_DRIVER_CLASS);
            conn = DriverManager.getConnection(url, user, password);
        } catch (Exception e) {
            LOG.error("get ClickHouse connection error, please check ClickHouse JDBC URL, username or password", e);
            throw new Exception("get ClickHouse connection error, please check JDBC URL, username or password. "
                    + "other error msg: " + e.getMessage());
        }

        if (conn == null) {
            throw new Exception("get ClickHouse connection failed, please contact administrator");
        }
        LOG.info("get ClickHouse connection success, url={}", url);
        return conn;
    }
Establishes a ClickHouse JDBC connection using the provided URL, username, and password.

@param url      The ClickHouse JDBC URL
@param user     The username
@param password The user's password
@return A {@link Connection} object representing the ClickHouse database connection
@throws Exception If an error occurs while obtaining the connection
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/ck/ClickHouseJdbcUtils.java