// Note that the upsert select statements will need to commit any open transaction here,
// since they'd update data directly from coprocessors, and should thus operate on
// the latest state
try {
MutationPlan plan = stmt.compilePlan(PhoenixStatement.this, Sequence.ValueOp.RESERVE_SEQUENCE);
MutationState state = plan.execute();
connection.getMutationState().join(state);
if (connection.getAutoCommit()) {
connection.commit();
}
setLastResultSet(null);