public static boolean checkColumnExist(String url, String user, String password, String dbName,
            final String tableName, final String column) throws Exception {
        boolean result = false;
        final String checkTableSql = StarRocksSqlBuilder.getCheckColumn(dbName, tableName, column);
        try (Connection conn = getConnection(url, user, password);
                Statement stmt = conn.createStatement();
                ResultSet resultSet = stmt.executeQuery(checkTableSql)) {
            if (Objects.nonNull(resultSet)) {
                if (resultSet.next()) {
                    result = true;
                }
            }
        }
        LOGGER.info("check column exist for db={} table={}, result={} column={}", dbName, tableName, result, column);
        return result;
    }
Check whether the column exists in the StarRocks table.

@param url jdbcUrl
@param user username
@param password password
@param dbName database name
@param tableName table name
@param column table column name
@return true if column exist in the table, otherwise false
@throws Exception on check column exist error
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/starrocks/StarRocksJdbcUtils.java