@Override
  public void createDatabase(String database)
      throws IoTDBConnectionException, StatementExecutionException {
    defaultSessionConnection.setStorageGroup(database);
  }
Only changes the member variable of the Session object without sending it to server.
iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java