public static boolean isSetSqlDialect(String sql) {
    // check if startWith 'set '
    if (sql.length() <= 15 || !"set ".equalsIgnoreCase(sql.substring(0, 4))) {
      return false;
    }

    // check if the following content of sql is 'sql_dialect'
    sql = sql.substring(4).trim();
    if (sql.length() <= 11) {
      return false;
    }
    return sql.substring(0, 11).equalsIgnoreCase("sql_dialect");
  }
Convert from {@link TSStatusCode} to {@link TSStatus}, which has message appended with existing
status message

@param tsStatusCode status type
@param message appending message
iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java