private void executeQuery(String queryText, Object[] params) throws MetaException {
    try (QueryWrapper query = new QueryWrapper(pm.newQuery("javax.jdo.query.SQL", queryText))) {
      MetastoreDirectSqlUtils.executeWithArray(query.getInnerQuery(), params, queryText);
    }
  }
Interface to execute multiple row insert query in batch for direct SQL
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DirectSqlInsertPart.java