@Override
  public int[] executeBatch() throws SQLException {
    checkConnection("executeBatch");
    isClosed = false;
    try {
      return executeBatchSQL();
    } catch (TException e) {
      throw new SQLException(
          "Fail to reconnect to server when executing batch sqls. please check server status", e);
    } finally {
      clearBatch();
    }
  }
There are two kinds of sql here: (1) query sql (2) update sql.

<p>(1) return IoTDBJDBCResultSet or IoTDBNonAlignJDBCResultSet (2) simply get executed
iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBStatement.java