commandContext.putPlan(query, pp, copy.getDeterminismLevel());
copy.setDeterminismLevel(determinismLevel);
}
copy.pushVariableContext(new VariableContext());
PreparedStatementRequest.resolveParameterValues(pp.getReferences(), Arrays.asList(params), copy, metadata);
return new QueryProcessor(pp.getPlan().clone(), copy, bufferMgr, dataMgr);
}