class TDEngineUtils {

    public static final DateTimeFormatter format = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss.SSS");


    public static String formatTime(long timestamp) {
        return new DateTime(timestamp).toString(format);
    }


    public static Mono<JSONObject> checkExecuteResult(ClientResponse response) {<FILL_FUNCTION_BODY>}

    public static void checkExecuteResult(String sql, JSONObject result) {
        if (result.getInteger("code") != 0) {
            String error = result.getString("desc");
            if (sql != null && (sql.startsWith("describe")
                || sql.startsWith("select")
                || sql.startsWith("SELECT"))
                && error.contains("does not exist")) {
                return;
            }
            if (sql != null) {
                log.warn("execute tdengine sql error [{}]: [{}]", error, sql);
            }

            throw new TDengineException(sql, result.getString("desc"));
        }
    }

}

        if (response.statusCode().isError()) {
            return response
                .bodyToMono(String.class)
                .doOnNext(str -> {
                    throw new TDengineException(null, str);
                })
                .switchIfEmpty(Mono.error(() -> new TDengineException(null, response.statusCode().getReasonPhrase())))
                .then(Mono.empty());

        }
        return response
            .bodyToMono(String.class)
            .map(json -> {
                JSONObject obj = JSON.parseObject(json);
                checkExecuteResult(null, obj);
                return obj;
            });


    
<no_super_class>